aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/GolfWatchApps
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-18 14:03:36 +0900
committernsfisis <nsfisis@gmail.com>2024-08-18 14:03:38 +0900
commitc11fcbae922a77b22dc51fc5d988a5646ed78935 (patch)
tree4aa46edcb99d8d8da977a28ee9d8b58219c75336 /frontend/app/components/GolfWatchApps
parente20a0196cdd4a19636a12bcc392d79a803fd868e (diff)
downloadiosdc-japan-2024-albatross-c11fcbae922a77b22dc51fc5d988a5646ed78935.tar.gz
iosdc-japan-2024-albatross-c11fcbae922a77b22dc51fc5d988a5646ed78935.tar.zst
iosdc-japan-2024-albatross-c11fcbae922a77b22dc51fc5d988a5646ed78935.zip
feat(frontend): syntax highlight for code block in watch page
Diffstat (limited to 'frontend/app/components/GolfWatchApps')
-rw-r--r--frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx
index b2598fc..2bc5d55 100644
--- a/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx
+++ b/frontend/app/components/GolfWatchApps/GolfWatchAppGaming.tsx
@@ -88,7 +88,7 @@ export default function GolfWatchAppGaming({
bgB="bg-purple-400"
/>
<div className="grow grid grid-cols-3 p-4 gap-4">
- <CodeBlock code={playerInfoA.code ?? ""} />
+ <CodeBlock code={playerInfoA.code ?? ""} language="swift" />
<div className="flex flex-col gap-4 justify-between">
<div className="grid grid-cols-2 gap-4">
<SubmitResult result={playerInfoA.submitResult} />
@@ -101,7 +101,7 @@ export default function GolfWatchAppGaming({
<BorderedContainer>{problemDescription}</BorderedContainer>
</div>
</div>
- <CodeBlock code={playerInfoB.code ?? ""} />
+ <CodeBlock code={playerInfoB.code ?? ""} language="swift" />
</div>
</div>
);