From 992d0a19c056bb786720802747a547ddc7602960 Mon Sep 17 00:00:00 2001 From: Halit Aksoy Date: Wed, 13 Jul 2022 22:42:45 +0300 Subject: [PATCH] rename ball to stone --- src/components/BoardView.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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} );