diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-15 23:07:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-15 23:07:40 +0900 |
| commit | 172b6d3211d040e8d577afda80debce583c3bf7c (patch) | |
| tree | e62023aebb0924e8ad63c37e2d22f0a50a299eff /frontend/app/components/GolfWatchApp.tsx | |
| parent | c2e23841f446489c4d9b7d2b616f3de249159f5f (diff) | |
| download | iosdc-japan-2025-albatross-172b6d3211d040e8d577afda80debce583c3bf7c.tar.gz iosdc-japan-2025-albatross-172b6d3211d040e8d577afda80debce583c3bf7c.tar.zst iosdc-japan-2025-albatross-172b6d3211d040e8d577afda80debce583c3bf7c.zip | |
feat(frontend): show loaing screen
Diffstat (limited to 'frontend/app/components/GolfWatchApp.tsx')
| -rw-r--r-- | frontend/app/components/GolfWatchApp.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/frontend/app/components/GolfWatchApp.tsx b/frontend/app/components/GolfWatchApp.tsx index 919fa4f..5cbec3d 100644 --- a/frontend/app/components/GolfWatchApp.tsx +++ b/frontend/app/components/GolfWatchApp.tsx @@ -17,6 +17,7 @@ import { } from "../states/watch"; import GolfWatchAppGaming1v1 from "./GolfWatchApps/GolfWatchAppGaming1v1"; import GolfWatchAppGamingMultiplayer from "./GolfWatchApps/GolfWatchAppGamingMultiplayer"; +import GolfWatchAppLoading from "./GolfWatchApps/GolfWatchAppLoading"; import GolfWatchAppStarting from "./GolfWatchApps/GolfWatchAppStarting"; import GolfWatchAppWaiting1v1 from "./GolfWatchApps/GolfWatchAppWaiting1v1"; import GolfWatchAppWaitingMultiplayer from "./GolfWatchApps/GolfWatchAppWaitingMultiplayer"; @@ -106,7 +107,9 @@ export default function GolfWatchApp({ game }: Props) { setRanking, ]); - if (gameStateKind === "waiting") { + if (gameStateKind === "loading") { + return <GolfWatchAppLoading />; + } else if (gameStateKind === "waiting") { return game.game_type === "1v1" ? ( <GolfWatchAppWaiting1v1 gameDisplayName={game.display_name} @@ -139,7 +142,5 @@ export default function GolfWatchApp({ game }: Props) { gameResult={null /* TODO */} /> ); - } else { - return null; } } |
