Skip to content

Commit

Permalink
Reverting canvas theme change trial
Browse files Browse the repository at this point in the history
  • Loading branch information
akadeepesh committed Sep 9, 2024
1 parent 5df5846 commit 87db4a3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const Canvas: React.FC<CanvasProps> = ({
const chartRef = useRef<SmoothieChart[]>([]);
const seriesRef = useRef<(TimeSeries | null)[]>([]);
const [isChartInitialized, setIsChartInitialized] = useState(false);
const [isGlobalPaused, setIsGlobalPaused] = useState(!isDisplay);
const [isGlobalPaused, setIsGlobalPaused] = useState(true);
const batchSize = 10;
const batchBuffer = useMemo<Array<{ time: number; values: number[] }>>(
() => [],
Expand Down Expand Up @@ -117,12 +117,6 @@ const Canvas: React.FC<CanvasProps> = ({
) as HTMLCanvasElement,
500
);

if (isGlobalPaused) {
chart.stop();
} else {
chart.start();
}
}
});
}, [
Expand Down

0 comments on commit 87db4a3

Please sign in to comment.