diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-22 14:16:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-22 14:16:21 +0900 |
| commit | 81dd1db4daa57e67b1f603c260afe6cb526e5278 (patch) | |
| tree | 8e5a857769db577b034a9a0404e70cf6c2d2693a /frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx | |
| parent | 483e297f4789fb1fdaa241f87686a00ef55a046d (diff) | |
| parent | dfd33e58a5e6f830d60e978afad7348f7a16068d (diff) | |
| download | phperkaigi-2025-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.tar.gz phperkaigi-2025-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.tar.zst phperkaigi-2025-albatross-81dd1db4daa57e67b1f603c260afe6cb526e5278.zip | |
Merge branch 'refactor/frontend-state'
Diffstat (limited to 'frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx')
| -rw-r--r-- | frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx index faa9485..0e964e3 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppWaiting.tsx @@ -1,18 +1,16 @@ -import { PlayerInfo as FullPlayerInfo } from "../../models/PlayerInfo"; -import PlayerProfile from "../PlayerProfile"; - -type PlayerInfo = Pick<FullPlayerInfo, "displayName" | "iconPath">; +import type { PlayerProfile } from "../../types/PlayerProfile"; +import PlayerNameAndIcon from "../PlayerNameAndIcon"; type Props = { gameDisplayName: string; - playerInfoA: PlayerInfo; - playerInfoB: PlayerInfo; + playerProfileA: PlayerProfile; + playerProfileB: PlayerProfile; }; export default function GolfWatchAppWaiting({ gameDisplayName, - playerInfoA, - playerInfoB, + playerProfileA, + playerProfileB, }: Props) { return ( <div className="min-h-screen bg-gray-100 flex flex-col font-bold text-center"> @@ -20,9 +18,9 @@ export default function GolfWatchAppWaiting({ <div className="text-4xl">{gameDisplayName}</div> </div> <div className="grow grid grid-cols-3 gap-10 mx-auto text-black"> - <PlayerProfile playerInfo={playerInfoA} label="Player 1" /> + <PlayerNameAndIcon label="Player 1" profile={playerProfileA} /> <div className="text-8xl my-auto">vs.</div> - <PlayerProfile playerInfo={playerInfoB} label="Player 2" /> + <PlayerNameAndIcon label="Player 2" profile={playerProfileB} /> </div> </div> ); |
