From ab6abc3a7619be89dda1bc3ab0b3f19ff69b575f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 12 Aug 2024 01:54:36 +0900 Subject: refactor(frontend): rename SubmissionResult and VerificationResult for consistant naming --- .../GolfWatchApps/GolfWatchAppGaming.tsx | 62 ++++++++++------------ 1 file changed, 29 insertions(+), 33 deletions(-) (limited to 'frontend/app/components/GolfWatchApps') diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx index 5ca778b..bdd1ac3 100644 --- a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx +++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx @@ -1,5 +1,5 @@ import { PlayerInfo } from "../../models/PlayerInfo"; -import { submissionResultStatusToLabel } from "../../models/SubmissionResult"; +import { submitResultStatusToLabel } from "../../models/SubmitResult"; import ExecStatusIndicatorIcon from "../ExecStatusIndicatorIcon"; type Props = { @@ -60,28 +60,26 @@ export default function GolfWatchAppGaming({
- {submissionResultStatusToLabel( - playerInfoA.submissionResult?.status ?? null, + {submitResultStatusToLabel( + playerInfoA.submitResult?.status ?? null, )}
    - {playerInfoA.submissionResult?.verificationResults.map( - (result) => ( -
  1. + {playerInfoA.submitResult?.execResults.map((result) => ( +
  2. +
    -
    - {" "} - {result.label} -
    -
    - {result.stdout} - {result.stderr} -
    + {" "} + {result.label}
    -
  3. - ), - )} +
    + {result.stdout} + {result.stderr} +
    +
+ + ))}
@@ -92,28 +90,26 @@ export default function GolfWatchAppGaming({
- {submissionResultStatusToLabel( - playerInfoB.submissionResult?.status ?? null, + {submitResultStatusToLabel( + playerInfoB.submitResult?.status ?? null, )}
    - {playerInfoB.submissionResult?.verificationResults.map( - (result, idx) => ( -
  1. + {playerInfoB.submitResult?.execResults.map((result, idx) => ( +
  2. +
    +
    + {" "} + {result.label} +
    -
    - {" "} - {result.label} -
    -
    - {result.stdout} - {result.stderr} -
    + {result.stdout} + {result.stderr}
    -
  3. - ), - )} +
+ + ))}
-- cgit v1.2.3-70-g09d2