From 21d940d3eab4fd2a51a45e9cb41ae5919a64c07d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 15 Dec 2022 14:33:42 +0100 Subject: [PATCH] Remove unnecessary code --- src/js/Components.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/js/Components.js b/src/js/Components.js index 32025a0..ae91a9b 100644 --- a/src/js/Components.js +++ b/src/js/Components.js @@ -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",