From 42c6c97f0230c0969a87e601be1ee740bd017aa5 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 16 Mar 2025 00:09:32 +0900 Subject: feat(frontend): enhance ranking table design --- .../GolfWatchAppGamingMultiplayer.tsx | 88 +++++++++++----------- frontend/app/components/UserLabel.tsx | 11 --- 2 files changed, 43 insertions(+), 56 deletions(-) delete mode 100644 frontend/app/components/UserLabel.tsx (limited to 'frontend/app/components') diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx index 708c4a8..a2b2d21 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx @@ -3,7 +3,6 @@ import type { components } from "../../api/schema"; import { gamingLeftTimeSecondsAtom } from "../../states/watch"; import LeftTime from "../Gaming/LeftTime"; import Problem from "../Gaming/Problem"; -import UserLabel from "../UserLabel"; type RankingEntry = components["schemas"]["RankingEntry"]; @@ -40,51 +39,50 @@ export default function GolfWatchAppGamingMultiplayer({ description={problemDescription} sampleCode={sampleCode} /> -
- - - - - - - - - - {ranking.map((entry, index) => ( - - - - +
+
順位表
+
+
- 順位 - - 名前 - - スコア -
- {index + 1} - - {entry.player.display_name} - {entry.player.label && ( - - - - )} - - {entry.score} -
+ + + + + - ))} - -
+ 順位 + + プレイヤー + + スコア +
+ + + {ranking.map((entry, index) => ( + + + {index + 1} + + + {entry.player.display_name} + {entry.player.label && ` (${entry.player.label})`} + + + {entry.score} + + + ))} + + +
diff --git a/frontend/app/components/UserLabel.tsx b/frontend/app/components/UserLabel.tsx deleted file mode 100644 index 16ef4d4..0000000 --- a/frontend/app/components/UserLabel.tsx +++ /dev/null @@ -1,11 +0,0 @@ -type Props = { - label: string; -}; - -export default function UserLabel({ label }: Props) { - return ( - - {label} - - ); -} -- cgit v1.2.3-70-g09d2