From 17c1fbe0f8565f191a191138bebac7409512962e Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 15 Mar 2025 23:23:16 +0900 Subject: feat(frontend): improve left time display --- frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx') diff --git a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx index 5c5e149..743588d 100644 --- a/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx +++ b/frontend/app/components/GolfPlayApps/GolfPlayAppGaming.tsx @@ -8,6 +8,7 @@ import { statusAtom, } from "../../states/play"; import type { PlayerProfile } from "../../types/PlayerProfile"; +import LeftTime from "../Gaming/LeftTime"; import Problem from "../Gaming/Problem"; import SubmitResult from "../Gaming/SubmitResult"; import UserIcon from "../UserIcon"; @@ -49,18 +50,12 @@ export default function GolfPlayAppGaming({ } }; - const leftTime = (() => { - const m = Math.floor(leftTimeSeconds / 60); - const s = leftTimeSeconds % 60; - return `${m.toString().padStart(2, "0")}:${s.toString().padStart(2, "0")}`; - })(); - return (
{gameDisplayName}
-
{leftTime}
+
-- cgit v1.2.3-70-g09d2