fix isStatic declaration order error

This commit is contained in:
vndangkhoa 2026-04-29 17:03:44 +07:00
parent 448e5c1db5
commit 245fbf7697

View file

@ -16,6 +16,7 @@ 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(() => {
@ -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}`,