From 1afd2781818ef5cba0f018811f12cd8653da10b6 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 20 Mar 2025 23:28:39 +0900 Subject: fix(frontend): fix state corruption --- .../app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx | 10 +++++----- .../components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx | 7 +------ 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'frontend/app/components/GolfWatchApps') diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx index 981f533..5b975e7 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming1v1.tsx @@ -1,19 +1,19 @@ import { useAtomValue } from "jotai"; import { + calcCodeSize, gamingLeftTimeSecondsAtom, latestGameStatesAtom, - calcCodeSize, } from "../../states/watch"; import type { PlayerProfile } from "../../types/PlayerProfile"; import BorderedContainer from "../BorderedContainer"; -import SubmitStatusLabel from "../SubmitStatusLabel"; -import ThreeColumnLayout from "../ThreeColumnLayout"; -import TitledColumn from "../TitledColumn"; -import UserIcon from "../UserIcon"; import CodeBlock from "../Gaming/CodeBlock"; import LeftTime from "../Gaming/LeftTime"; import ProblemColumn from "../Gaming/ProblemColumn"; import ScoreBar from "../Gaming/ScoreBar"; +import SubmitStatusLabel from "../SubmitStatusLabel"; +import ThreeColumnLayout from "../ThreeColumnLayout"; +import TitledColumn from "../TitledColumn"; +import UserIcon from "../UserIcon"; type Props = { gameDisplayName: string; diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx index a6b9464..b1d6520 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx @@ -1,5 +1,4 @@ import { useAtomValue } from "jotai"; -import type { components } from "../../api/schema"; import { gamingLeftTimeSecondsAtom } from "../../states/watch"; import LeftTime from "../Gaming/LeftTime"; import ProblemColumn from "../Gaming/ProblemColumn"; @@ -7,11 +6,8 @@ import RankingTable from "../Gaming/RankingTable"; import TitledColumn from "../TitledColumn"; import TwoColumnLayout from "../TwoColumnLayout"; -type RankingEntry = components["schemas"]["RankingEntry"]; - type Props = { gameDisplayName: string; - ranking: RankingEntry[]; problemTitle: string; problemDescription: string; sampleCode: string; @@ -19,7 +15,6 @@ type Props = { export default function GolfWatchAppGamingMultiplayer({ gameDisplayName, - ranking, problemTitle, problemDescription, sampleCode, @@ -43,7 +38,7 @@ export default function GolfWatchAppGamingMultiplayer({ sampleCode={sampleCode} /> - + -- cgit v1.2.3-70-g09d2