diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-07-27 01:17:37 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-07-27 05:59:23 +0900 |
| commit | 18308a22879dc9143a03bcbe53cf0c5e8e49ee1f (patch) | |
| tree | c1c108e27b1c369f30670480e19082044ae1b8a0 /frontend/src/routes/golf/play/apps/Gaming.tsx | |
| parent | e487036c5cc9f5b59e9efbaec132a2fd60896317 (diff) | |
| download | iosdc-japan-2024-albatross-18308a22879dc9143a03bcbe53cf0c5e8e49ee1f.tar.gz iosdc-japan-2024-albatross-18308a22879dc9143a03bcbe53cf0c5e8e49ee1f.tar.zst iosdc-japan-2024-albatross-18308a22879dc9143a03bcbe53cf0c5e8e49ee1f.zip | |
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> - ); -} |
