From 4f8f14364cc11fd09164c493123a2fd2dfdc9a72 Mon Sep 17 00:00:00 2001 From: Joel Therrien Date: Wed, 23 Aug 2023 21:58:34 -0700 Subject: [PATCH] Removed unused parameters in UI --- ui/src/Game.tsx | 6 +++--- ui/src/TileExchange.tsx | 6 +++--- ui/src/UI.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ui/src/Game.tsx b/ui/src/Game.tsx index fb55262..fc17b7b 100644 --- a/ui/src/Game.tsx +++ b/ui/src/Game.tsx @@ -143,7 +143,7 @@ export function Game(props: {wasm: GameWasm, settings: Settings}) { - - ; diff --git a/ui/src/TileExchange.tsx b/ui/src/TileExchange.tsx index 7388e92..01334b6 100644 --- a/ui/src/TileExchange.tsx +++ b/ui/src/TileExchange.tsx @@ -38,12 +38,12 @@ export function TileExchangeModal(props: { Click on each tile you'd like to exchange. You currently have {tilesExchangedSelected} tiles selected.
- -
@@ -59,7 +59,7 @@ export function TileExchangeModal(props: { setTilesToExchange(clearExchangeTiles()); props.setOpen(false); }}>Cancel - diff --git a/ui/src/UI.tsx b/ui/src/UI.tsx index 4e41e4e..bd50085 100644 --- a/ui/src/UI.tsx +++ b/ui/src/UI.tsx @@ -158,7 +158,7 @@ export function Grid(props: { .forEach((letter, i) => { if (letter.location === LocationType.GRID) { const ct = props.cellTypes[letter.index]; - const {className, text} = cellTypeToDetails(ct); + const {className} = cellTypeToDetails(ct); elements[letter.index] =
@@ -183,7 +183,7 @@ export function Grid(props: { } export function Scores(props: {playerScores: Array}){ - let elements = props.playerScores.map((ps, i) => { + let elements = props.playerScores.map((ps) => { return

{ps.name}

{ps.score}