diff --git a/web-dashboard/src/components/charts/CandlestickChart.tsx b/web-dashboard/src/components/charts/CandlestickChart.tsx index bc953cb17..854ecfe35 100644 --- a/web-dashboard/src/components/charts/CandlestickChart.tsx +++ b/web-dashboard/src/components/charts/CandlestickChart.tsx @@ -1,6 +1,10 @@ import { useEffect, useRef } from 'react'; import { createChart, CandlestickSeries, type IChartApi, type CandlestickData, type Time } from 'lightweight-charts'; +function getCssVar(name: string): string { + return getComputedStyle(document.documentElement).getPropertyValue(name).trim(); +} + interface Props { symbol: string; data?: CandlestickData