diff --git a/assets/react/controllers/GameGrid.jsx b/assets/react/controllers/GameGrid.jsx index 2981c9a..73cb81a 100644 --- a/assets/react/controllers/GameGrid.jsx +++ b/assets/react/controllers/GameGrid.jsx @@ -1,25 +1,18 @@ import React from 'react'; +import GameRow from './GameRow'; export default function GameGrid({ grid, width, middle }) { return ( {grid.map((row, rowIndex) => ( - - {Array.from({ length: width + 1 }, (_, colIndex) => { - const start = middle - row.pos; - const charIndex = colIndex - start; - const name = row.actorName; - const isInRange = charIndex >= 0 && charIndex < name.length; - const isHighlighted = charIndex === row.pos; - - return ( - - ); - })} - + ))}
- {isInRange ? name[charIndex].toUpperCase() : ''} -