fix isStatic declaration order error
This commit is contained in:
parent
448e5c1db5
commit
245fbf7697
1 changed files with 2 additions and 2 deletions
|
|
@ -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}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue