diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-27 19:02:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-27 19:02:58 +0900 |
| commit | b70fa3abf9c96871cc3e39090e9a00da4ad87b8b (patch) | |
| tree | 848da44374c48edec603fb014c59ad0fbb9307e6 /frontend/src/routes/golf/play/apps/Gaming.tsx | |
| parent | e487036c5cc9f5b59e9efbaec132a2fd60896317 (diff) | |
| parent | 7cbf34204233df7c7e9e4b24998e25dbd8d2a423 (diff) | |
| download | iosdc-japan-2024-albatross-b70fa3abf9c96871cc3e39090e9a00da4ad87b8b.tar.gz iosdc-japan-2024-albatross-b70fa3abf9c96871cc3e39090e9a00da4ad87b8b.tar.zst iosdc-japan-2024-albatross-b70fa3abf9c96871cc3e39090e9a00da4ad87b8b.zip | |
Merge branch 'remix'
Diffstat (limited to 'frontend/src/routes/golf/play/apps/Gaming.tsx')
| -rw-r--r-- | frontend/src/routes/golf/play/apps/Gaming.tsx | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/frontend/src/routes/golf/play/apps/Gaming.tsx b/frontend/src/routes/golf/play/apps/Gaming.tsx deleted file mode 100644 index 9be39c8..0000000 --- a/frontend/src/routes/golf/play/apps/Gaming.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import React from "react"; - -type Props = { - gameId: number; - playerId: number; - problem: string | null; - onCodeChange: (data: { code: string }) => void; - score: number | null; -}; - -export default function Gaming({ problem, onCodeChange, score }: Props) { - const handleTextChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => { - onCodeChange({ code: e.target.value }); - }; - - return ( - <div style={{ display: "flex" }}> - <div style={{ flex: 1, padding: "10px", borderRight: "1px solid #ccc" }}> - <div>{problem}</div> - <div>{score == null ? "Score: -" : `Score: ${score} byte`}</div> - </div> - <div style={{ flex: 1, padding: "10px" }}> - <textarea - style={{ width: "100%", height: "100%" }} - onChange={handleTextChange} - /> - </div> - </div> - ); -} |
