diff --git a/src/components/BoardView.tsx b/src/components/BoardView.tsx index aa94233..a00f7a4 100644 --- a/src/components/BoardView.tsx +++ b/src/components/BoardView.tsx @@ -6,7 +6,7 @@ import { getColorByBrightness } from "../util/ColorUtil"; import BoardViewModel from "../viewmodel/BoardViewModel"; import PitViewModel from "../viewmodel/PitViewModel"; -const BallView: FunctionComponent<{ color: string }> = ({ color }) => { +const StoneView: FunctionComponent<{ color: string }> = ({ color }) => { return (
void; }> = ({ pitViewModel, onClick }) => { - const balls = [...range(pitViewModel.stoneCount)].map((i, index) => ( - + const stones = [...range(pitViewModel.stoneCount)].map((i, index) => ( + )); return ( @@ -54,7 +54,7 @@ const HoleView: FunctionComponent<{ flexWrap: "wrap", }} > - {balls} + {stones}
); }; @@ -65,8 +65,8 @@ const StoreView: FunctionComponent<{ gridColumn: string; gridRow: string; }> = ({ context, pitViewModel, gridColumn, gridRow }) => { - const balls = [...range(pitViewModel.stoneCount)].map((i, index) => ( - + const stones = [...range(pitViewModel.stoneCount)].map((i, index) => ( + )); const textColor = getColorByBrightness( pitViewModel.pitColor, @@ -89,7 +89,7 @@ const StoreView: FunctionComponent<{ position: "relative", }} > - {balls} + {stones} - {balls.length} + {stones.length} );