From 245fbf7697eaf1be94e7e538b0a9d16465af89d2 Mon Sep 17 00:00:00 2001 From: vndangkhoa Date: Wed, 29 Apr 2026 17:03:44 +0700 Subject: [PATCH] fix isStatic declaration order error --- src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 00bd9ac..34b3685 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -16,7 +16,8 @@ function TetrisPiece({ piece, isDark }) { const isCV = piece.label === 'cv'; const isFeatured = piece.featured; const alwaysShowText = true; - + const isStatic = piece.label === 'cv' || piece.featured; + // Update mobile state on resize useEffect(() => { const handleResize = () => { @@ -59,7 +60,6 @@ const bgColor = piece.label === 'cv' : '#cccccc'; // Start gray for desktop only const rowDelay = (piece.startY * 10) + (piece.startX * 2); // Stagger based on both X and Y position const textColor = '#ffffff'; - const isStatic = piece.label === 'cv' || piece.featured; const containerStyle = { gridColumn: `${piece.startX + 1} / span ${piece.w}`,