Skip to content

Commit

Permalink
Merge pull request #27 from shibisuriya/feat/step-controls
Browse files Browse the repository at this point in the history
fix: removed all from step controller
  • Loading branch information
shibisuriya authored Nov 10, 2023
2 parents f15da77 + df0f30d commit c61f68e
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions packages/game-client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,21 @@ function App() {
</Flex>
<Divider dashed />
<Flex justify="space-evenly">
{snakeIdList.map((snake, index) => {
const { id, headColor, bodyColor } = snake;
return (
<DirectionSelector
key={index}
id={id}
headColor={headColor}
bodyColor={bodyColor}
direction={directions[id]}
updateSnakeDirection={updateSnakeDirection}
/>
);
})}
{snakeIdList
.filter((item) => item.id !== allSnakesSelectOption.id)
.map((snake, index) => {
const { id, headColor, bodyColor } = snake;
return (
<DirectionSelector
key={index}
id={id}
headColor={headColor}
bodyColor={bodyColor}
direction={directions[id]}
updateSnakeDirection={updateSnakeDirection}
/>
);
})}
</Flex>
<Game
ref={gameRef}
Expand Down

0 comments on commit c61f68e

Please sign in to comment.