fix isStatic declaration order error
This commit is contained in:
parent
448e5c1db5
commit
245fbf7697
1 changed files with 2 additions and 2 deletions
|
|
@ -16,7 +16,8 @@ function TetrisPiece({ piece, isDark }) {
|
||||||
const isCV = piece.label === 'cv';
|
const isCV = piece.label === 'cv';
|
||||||
const isFeatured = piece.featured;
|
const isFeatured = piece.featured;
|
||||||
const alwaysShowText = true;
|
const alwaysShowText = true;
|
||||||
|
const isStatic = piece.label === 'cv' || piece.featured;
|
||||||
|
|
||||||
// Update mobile state on resize
|
// Update mobile state on resize
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleResize = () => {
|
const handleResize = () => {
|
||||||
|
|
@ -59,7 +60,6 @@ const bgColor = piece.label === 'cv'
|
||||||
: '#cccccc'; // Start gray for desktop only
|
: '#cccccc'; // Start gray for desktop only
|
||||||
const rowDelay = (piece.startY * 10) + (piece.startX * 2); // Stagger based on both X and Y position
|
const rowDelay = (piece.startY * 10) + (piece.startX * 2); // Stagger based on both X and Y position
|
||||||
const textColor = '#ffffff';
|
const textColor = '#ffffff';
|
||||||
const isStatic = piece.label === 'cv' || piece.featured;
|
|
||||||
|
|
||||||
const containerStyle = {
|
const containerStyle = {
|
||||||
gridColumn: `${piece.startX + 1} / span ${piece.w}`,
|
gridColumn: `${piece.startX + 1} / span ${piece.w}`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue