From ee92692aac6b69344ff8657b86604aa90185ac3c Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Sun, 10 May 2026 15:43:28 +0200 Subject: [PATCH] fix: resolve React Hook order violation in TrenchLines Former-commit-id: cc65edbf7879d3ce22f809275fa044289f3c99a2 --- components/ui/decorations/TrenchLines.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/components/ui/decorations/TrenchLines.tsx b/components/ui/decorations/TrenchLines.tsx index 1f9046699..cc3af92d6 100644 --- a/components/ui/decorations/TrenchLines.tsx +++ b/components/ui/decorations/TrenchLines.tsx @@ -14,7 +14,8 @@ export function TrenchLines() { }); // Map progress to vertical position - const yPosition = useTransform(smoothProgress, [0, 1], ['0%', '100%']); + const yPosition = useTransform(smoothProgress, [0, 1], ['-15vh', '100vh']); + const yPositionMarker = useTransform(smoothProgress, [0, 1], ['-15vh', '100vh']); const [mounted, setMounted] = useState(false); @@ -30,12 +31,12 @@ export function TrenchLines() {
{/* Subtle digging pulse marker */}
@@ -43,12 +44,12 @@ export function TrenchLines() {
{/* Subtle digging pulse marker */}