diff --git a/src/components/BoardView.tsx b/src/components/BoardView.tsx index 38c7cda..c1706a0 100644 --- a/src/components/BoardView.tsx +++ b/src/components/BoardView.tsx @@ -59,10 +59,11 @@ const HoleView: FunctionComponent<{ }; const StoreView: FunctionComponent<{ + context: Context; pitViewModel: PitViewModel; gridColumn: string; gridRow: string; -}> = ({ pitViewModel, gridColumn, gridRow }) => { +}> = ({ context, pitViewModel, gridColumn, gridRow }) => { const balls = [...range(pitViewModel.stoneCount)].map((i) => ( )); @@ -79,9 +80,22 @@ const StoreView: FunctionComponent<{ justifyContent: "center", alignContent: "center", flexWrap: "wrap", + position: "relative", }} > {balls} + + {balls.length} + ); }; @@ -119,6 +133,7 @@ const BoardView: FunctionComponent<{ boardViewModel.pits[game.board.player2BankIndex()]; const player1Bank = (