From 82d3cf35c3c6b85b48c94dd6301c8bf718669b8d Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Fri, 5 Sep 2025 20:52:43 +0900
Subject: feat(frontend): support swift language

---
 frontend/app/components/Gaming/RankingTable.tsx | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'frontend/app/components/Gaming/RankingTable.tsx')

diff --git a/frontend/app/components/Gaming/RankingTable.tsx b/frontend/app/components/Gaming/RankingTable.tsx
index 3368f60..7359d40 100644
--- a/frontend/app/components/Gaming/RankingTable.tsx
+++ b/frontend/app/components/Gaming/RankingTable.tsx
@@ -1,6 +1,7 @@
 import { useAtomValue } from "jotai";
 import React from "react";
 import { rankingAtom } from "../../states/watch";
+import type { SupportedLanguage } from "../../types/SupportedLanguage";
 import CodePopover from "./CodePopover";
 
 function TableHeaderCell({ children }: { children: React.ReactNode }) {
@@ -29,7 +30,11 @@ function formatUnixTimestamp(timestamp: number) {
 	return `${year}-${month}-${day} ${hours}:${minutes}`;
 }
 
-export default function RankingTable() {
+type Props = {
+	problemLanguage: SupportedLanguage;
+};
+
+export default function RankingTable({ problemLanguage }: Props) {
 	const ranking = useAtomValue(rankingAtom);
 
 	return (
@@ -57,7 +62,9 @@ export default function RankingTable() {
 								{formatUnixTimestamp(entry.submitted_at)}
 							</TableBodyCell>
 							<TableBodyCell>
-								{entry.code && <CodePopover code={entry.code} />}
+								{entry.code && (
+									<CodePopover code={entry.code} language={problemLanguage} />
+								)}
 							</TableBodyCell>
 						</tr>
 					))}
-- 
cgit v1.2.3-70-g09d2

