From fcf4326e02d69c6d6c6fe9cf8a0d3ee6e2d25083 Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 26 Dec 2024 16:31:06 -0600 Subject: [PATCH] Fix build errors --- src/components/Dots.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Dots.tsx b/src/components/Dots.tsx index 020e1bc..acd9d4d 100644 --- a/src/components/Dots.tsx +++ b/src/components/Dots.tsx @@ -21,7 +21,7 @@ const Dots: React.FC = () => { let w = window.innerWidth; let h = window.innerHeight; - let offsetY = window.scrollY; + const offsetY = window.scrollY; const SCALE = 200; const LENGTH = 10; @@ -69,7 +69,7 @@ const Dots: React.FC = () => { const nx = x + cos(rad) * length; const ny = y + sin(rad) * length; - let opacity = 1; + const opacity = 1; // const center_distance = Math.sqrt((x - w / 2) ** 2 + (y - h / 2) ** 2); // if (center_distance < 350)