Skip to content

Commit

Permalink
✨ feat: #18 パネルエディタにて、黒にしたセルも白に操作可能に
Browse files Browse the repository at this point in the history
  • Loading branch information
Suke-H committed Jan 1, 2025
1 parent 5a52b6b commit 625bd3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/editor/new-panel-creator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const NewPanelCreator: React.FC<NewPanelCreatorProps> = ({

const handleNewPanelCellClick = (rowIndex: number, colIndex: number) => {
const newPanelGridCopy = newPanelGrid.map((row) => [...row]);
newPanelGridCopy[rowIndex][colIndex] = 'black';
newPanelGridCopy[rowIndex][colIndex] = newPanelGridCopy[rowIndex][colIndex] === 'black' ? 'white' : 'black';
setNewPanelGrid(newPanelGridCopy);
};

Expand Down

0 comments on commit 625bd3d

Please sign in to comment.