aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-03-20 23:28:39 +0900
committernsfisis <nsfisis@gmail.com>2025-03-20 23:28:39 +0900
commit1afd2781818ef5cba0f018811f12cd8653da10b6 (patch)
treef04146c6e8753b07d6d29765f615ab9094cd3f54 /frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx
parenta92aa377d536fe67fa1ff485566da38cf94328bb (diff)
downloadphperkaigi-2025-albatross-1afd2781818ef5cba0f018811f12cd8653da10b6.tar.gz
phperkaigi-2025-albatross-1afd2781818ef5cba0f018811f12cd8653da10b6.tar.zst
phperkaigi-2025-albatross-1afd2781818ef5cba0f018811f12cd8653da10b6.zip
fix(frontend): fix state corruption
Diffstat (limited to 'frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx')
-rw-r--r--frontend/app/components/GolfWatchApps/GolfWatchAppGamingMultiplayer.tsx7
1 files changed, 1 insertions, 6 deletions
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}
/>
<TitledColumn title="順位表">
- <RankingTable ranking={ranking} />
+ <RankingTable />
</TitledColumn>
</TwoColumnLayout>
</div>