aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-15 23:53:31 +0900
committernsfisis <nsfisis@gmail.com>2025-03-15 23:53:31 +0900
commitaf2d6093e2987ccc597f0be1e97a451858fee933 (patch)
tree2c291a8c5fd396e6d72bde9635e49c0cebf0f55c /frontend/app
parent830010167d44b2419344fa2b6c81a137948a0f94 (diff)
downloadphperkaigi-2025-albatross-af2d6093e2987ccc597f0be1e97a451858fee933.tar.gz
phperkaigi-2025-albatross-af2d6093e2987ccc597f0be1e97a451858fee933.tar.zst
phperkaigi-2025-albatross-af2d6093e2987ccc597f0be1e97a451858fee933.zip
refactor(feat): remove unnecessary component property
Diffstat (limited to 'frontend/app')
-rw-r--r--frontend/app/components/GolfWatchApp.tsx1
-rw-r--r--frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx12
2 files changed, 1 insertions, 12 deletions
diff --git a/frontend/app/components/GolfWatchApp.tsx b/frontend/app/components/GolfWatchApp.tsx
index 5cbec3d..5f23cdd 100644
--- a/frontend/app/components/GolfWatchApp.tsx
+++ b/frontend/app/components/GolfWatchApp.tsx
@@ -139,7 +139,6 @@ export default function GolfWatchApp({ game }: Props) {
problemTitle={game.problem.title}
problemDescription={game.problem.description}
sampleCode={game.problem.sample_code}
- gameResult={null /* TODO */}
/>
);
}
diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx
index 1b91620..708c4a8 100644
--- a/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx
+++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx
@@ -13,7 +13,6 @@ type Props = {
problemTitle: string;
problemDescription: string;
sampleCode: string;
- gameResult: "winA" | "winB" | "draw" | null;
};
export default function GolfWatchAppGamingMultiplayer({
@@ -22,21 +21,12 @@ export default function GolfWatchAppGamingMultiplayer({
problemTitle,
problemDescription,
sampleCode,
- gameResult,
}: Props) {
const leftTimeSeconds = useAtomValue(gamingLeftTimeSecondsAtom)!;
- const topBg = gameResult
- ? gameResult === "winA"
- ? "bg-orange-400"
- : gameResult === "winB"
- ? "bg-purple-400"
- : "bg-pink-500"
- : "bg-sky-600";
-
return (
<div className="min-h-screen bg-gray-100 flex flex-col">
- <div className={`text-white ${topBg} grid grid-cols-3 px-4 py-2`}>
+ <div className={`text-white bg-sky-600 grid grid-cols-3 px-4 py-2`}>
<div className="font-bold flex justify-between my-auto"></div>
<div className="font-bold text-center">
<div className="text-gray-100">{gameDisplayName}</div>