Remove unnecessary code
This commit is contained in:
parent
c091e5c808
commit
21d940d3ea
1 changed files with 2 additions and 5 deletions
|
@ -72,7 +72,7 @@ export function App(game)
|
|||
`Player ${Constants.PLAYER_NAMES[game.winner]} wins!` :
|
||||
`It's player "${Constants.PLAYER_NAMES[game.currentPlayer]}"s turn`
|
||||
],
|
||||
[MenuBar, game]
|
||||
[MenuBar]
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -131,13 +131,10 @@ export function Field(field)
|
|||
/**
|
||||
* Renders a menu bar.
|
||||
*
|
||||
* @param {import("./Game.js").Game} game
|
||||
* The game controlled by the menu bar.
|
||||
*
|
||||
* @returns {NodeDescriptor}
|
||||
* The rendered element.
|
||||
*/
|
||||
export function MenuBar(game)
|
||||
export function MenuBar()
|
||||
{
|
||||
return [
|
||||
"div",
|
||||
|
|
Loading…
Reference in a new issue