aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApp.client.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-19 05:21:58 +0900
committernsfisis <nsfisis@gmail.com>2024-08-19 05:35:24 +0900
commit19fad1b969ac9b6c50b024a2c710e8f4fe792eb0 (patch)
tree3fe237c1bee168eec088e125ba3877249aa09510 /frontend/app/components/GolfWatchApp.client.tsx
parent6031c81f5394acf315b277302a7fd18ea288b506 (diff)
downloadphperkaigi-2025-albatross-19fad1b969ac9b6c50b024a2c710e8f4fe792eb0.tar.gz
phperkaigi-2025-albatross-19fad1b969ac9b6c50b024a2c710e8f4fe792eb0.tar.zst
phperkaigi-2025-albatross-19fad1b969ac9b6c50b024a2c710e8f4fe792eb0.zip
feat(frontend): improve play/watch pages styling
Diffstat (limited to 'frontend/app/components/GolfWatchApp.client.tsx')
-rw-r--r--frontend/app/components/GolfWatchApp.client.tsx15
1 files changed, 13 insertions, 2 deletions
diff --git a/frontend/app/components/GolfWatchApp.client.tsx b/frontend/app/components/GolfWatchApp.client.tsx
index 9a641f0..e2bc7d4 100644
--- a/frontend/app/components/GolfWatchApp.client.tsx
+++ b/frontend/app/components/GolfWatchApp.client.tsx
@@ -236,9 +236,20 @@ export default function GolfWatchApp({
if (gameState === "connecting") {
return <GolfWatchAppConnecting />;
} else if (gameState === "waiting") {
- return <GolfWatchAppWaiting />;
+ return (
+ <GolfWatchAppWaiting
+ gameDisplayName={game.display_name}
+ playerInfoA={playerInfoA}
+ playerInfoB={playerInfoB}
+ />
+ );
} else if (gameState === "starting") {
- return <GolfWatchAppStarting leftTimeSeconds={leftTimeSeconds!} />;
+ return (
+ <GolfWatchAppStarting
+ gameDisplayName={game.display_name}
+ leftTimeSeconds={leftTimeSeconds!}
+ />
+ );
} else if (gameState === "gaming" || gameState === "finished") {
return (
<GolfWatchAppGaming