From 870d2de5de53e998de55f6840e90dbabee1d97fb Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Sat, 12 Jun 2021 14:31:09 +1000 Subject: [PATCH] Fix dice tile rendering --- src/components/dice/DiceTile.js | 18 ++++++++++-------- src/components/dice/DiceTiles.js | 6 ++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/dice/DiceTile.js b/src/components/dice/DiceTile.js index 857eda7..b9e1eb1 100644 --- a/src/components/dice/DiceTile.js +++ b/src/components/dice/DiceTile.js @@ -5,14 +5,16 @@ import Tile from "../tile/Tile"; function DiceTile({ dice, isSelected, onDiceSelect, onDone }) { return ( - onDiceSelect(dice)} - onDoubleClick={() => onDone(dice)} - > - - +
+ onDiceSelect(dice)} + onDoubleClick={() => onDone(dice)} + > + + +
); } diff --git a/src/components/dice/DiceTiles.js b/src/components/dice/DiceTiles.js index dede3cb..671848b 100644 --- a/src/components/dice/DiceTiles.js +++ b/src/components/dice/DiceTiles.js @@ -10,9 +10,7 @@ function DiceTiles({ dice, onDiceSelect, selectedDice, onDone }) { const layout = useResponsiveLayout(); return ( - + {dice.map((dice) => (