aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-12 01:54:36 +0900
committernsfisis <nsfisis@gmail.com>2024-08-12 01:54:36 +0900
commitab6abc3a7619be89dda1bc3ab0b3f19ff69b575f (patch)
tree57f4b6da4682ec43cbd7ba2a51c5866f226b0035 /frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx
parentb97b245861b93a5ab5f8bde095d9920fabd0cbbd (diff)
downloadphperkaigi-2025-albatross-ab6abc3a7619be89dda1bc3ab0b3f19ff69b575f.tar.gz
phperkaigi-2025-albatross-ab6abc3a7619be89dda1bc3ab0b3f19ff69b575f.tar.zst
phperkaigi-2025-albatross-ab6abc3a7619be89dda1bc3ab0b3f19ff69b575f.zip
refactor(frontend): rename SubmissionResult and VerificationResult for consistant naming
Diffstat (limited to 'frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx')
-rw-r--r--frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx62
1 files changed, 29 insertions, 33 deletions
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({
</div>
<div>
<div>
- {submissionResultStatusToLabel(
- playerInfoA.submissionResult?.status ?? null,
+ {submitResultStatusToLabel(
+ playerInfoA.submitResult?.status ?? null,
)}
</div>
<div>
<ol>
- {playerInfoA.submissionResult?.verificationResults.map(
- (result) => (
- <li key={result.testcase_id ?? -1}>
+ {playerInfoA.submitResult?.execResults.map((result) => (
+ <li key={result.testcase_id ?? -1}>
+ <div>
<div>
- <div>
- <ExecStatusIndicatorIcon status={result.status} />{" "}
- {result.label}
- </div>
- <div>
- {result.stdout}
- {result.stderr}
- </div>
+ <ExecStatusIndicatorIcon status={result.status} />{" "}
+ {result.label}
</div>
- </li>
- ),
- )}
+ <div>
+ {result.stdout}
+ {result.stderr}
+ </div>
+ </div>
+ </li>
+ ))}
</ol>
</div>
</div>
@@ -92,28 +90,26 @@ export default function GolfWatchAppGaming({
</div>
<div>
<div>
- {submissionResultStatusToLabel(
- playerInfoB.submissionResult?.status ?? null,
+ {submitResultStatusToLabel(
+ playerInfoB.submitResult?.status ?? null,
)}
</div>
<div>
<ol>
- {playerInfoB.submissionResult?.verificationResults.map(
- (result, idx) => (
- <li key={idx}>
+ {playerInfoB.submitResult?.execResults.map((result, idx) => (
+ <li key={idx}>
+ <div>
+ <div>
+ <ExecStatusIndicatorIcon status={result.status} />{" "}
+ {result.label}
+ </div>
<div>
- <div>
- <ExecStatusIndicatorIcon status={result.status} />{" "}
- {result.label}
- </div>
- <div>
- {result.stdout}
- {result.stderr}
- </div>
+ {result.stdout}
+ {result.stderr}
</div>
- </li>
- ),
- )}
+ </div>
+ </li>
+ ))}
</ol>
</div>
</div>