From 0bc943a36c9992d1098d92812b19b70d371e6a0d Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 20 Mar 2025 21:16:55 +0900 Subject: feat(frontend): remove "player 1" or "player 2" labels --- frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx | 7 ++----- .../app/components/GolfPlayApps/GolfPlayAppWaiting.tsx | 2 +- .../app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx | 14 ++++---------- .../components/GolfWatchApps/GolfWatchAppWaiting1v1.tsx | 4 ++-- frontend/app/components/PlayerNameAndIcon.tsx | 8 ++------ 5 files changed, 11 insertions(+), 24 deletions(-) (limited to 'frontend/app/components') diff --git a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx index b1b6f80..0931f73 100644 --- a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx +++ b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx @@ -72,12 +72,9 @@ export default function GolfPlayAppGaming({ -
+
{score}
-
-
Player 1
-
{playerProfile.displayName}
-
+
{playerProfile.displayName}
{playerProfile.iconPath && ( {gameDisplayName}
- +
); diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx index 081212e..f72397d 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx @@ -55,7 +55,7 @@ export default function GolfWatchAppGaming1v1({
-
+
{playerProfileA.iconPath && ( )} -
-
Player 1
-
{playerProfileA.displayName}
-
+
{playerProfileA.displayName}
{scoreA}
@@ -86,11 +83,8 @@ export default function GolfWatchAppGaming1v1({
{scoreB}
-
-
-
Player 2
-
{playerProfileB.displayName}
-
+
+
{playerProfileB.displayName}
{playerProfileB.iconPath && ( {gameDisplayName}
- +
vs.
- +
); diff --git a/frontend/app/components/PlayerNameAndIcon.tsx b/frontend/app/components/PlayerNameAndIcon.tsx index c9c7f20..92b757d 100644 --- a/frontend/app/components/PlayerNameAndIcon.tsx +++ b/frontend/app/components/PlayerNameAndIcon.tsx @@ -2,17 +2,13 @@ import { PlayerProfile } from "../types/PlayerProfile"; import UserIcon from "./UserIcon"; type Props = { - label: string; profile: PlayerProfile; }; -export default function PlayerNameAndIcon({ label, profile }: Props) { +export default function PlayerNameAndIcon({ profile }: Props) { return (
-
-
{label}
-
{profile.displayName}
-
+
{profile.displayName}
{profile.iconPath && (