Optimized images and linting
This commit is contained in:
@@ -19,7 +19,6 @@ export default function MatrixRain({ color = '#84c0a0', fps = 15 }: MatrixRainPr
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return;
|
||||
|
||||
let intervalId: NodeJS.Timeout;
|
||||
const fontSize = 16;
|
||||
let columns = 0;
|
||||
let drops: number[] = [];
|
||||
@@ -60,7 +59,7 @@ export default function MatrixRain({ color = '#84c0a0', fps = 15 }: MatrixRainPr
|
||||
}
|
||||
};
|
||||
|
||||
intervalId = setInterval(draw, 1000 / fps);
|
||||
const intervalId = setInterval(draw, 1000 / fps);
|
||||
|
||||
const handleResize = () => {
|
||||
if (window.innerWidth !== lastWidth.current) {
|
||||
|
||||
Reference in New Issue
Block a user