From 3ea0b8e93ea2735feacc8b7253bc0b32a5aa2bb6 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sat, 29 Mar 2025 01:51:53 +0900
Subject: feat: show code in ranking page

---
 frontend/app/components/Gaming/RankingTable.tsx | 5 +++++
 1 file changed, 5 insertions(+)

(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 a1e41f5..38d5200 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 CodePopover from "./CodePopover";
 
 function TableHeaderCell({ children }: { children: React.ReactNode }) {
 	return (
@@ -40,6 +41,7 @@ export default function RankingTable() {
 						<TableHeaderCell>プレイヤー</TableHeaderCell>
 						<TableHeaderCell>スコア</TableHeaderCell>
 						<TableHeaderCell>提出時刻</TableHeaderCell>
+						<TableHeaderCell>コード</TableHeaderCell>
 					</tr>
 				</thead>
 				<tbody className="bg-white divide-y divide-gray-300">
@@ -54,6 +56,9 @@ export default function RankingTable() {
 							<TableBodyCell>
 								{formatUnixTimestamp(entry.submitted_at)}
 							</TableBodyCell>
+							<TableBodyCell>
+								{entry.code && <CodePopover code={entry.code} />}
+							</TableBodyCell>
 						</tr>
 					))}
 				</tbody>
-- 
cgit v1.2.3-70-g09d2

