aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/routes/golf/play/apps/Gaming.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/routes/golf/play/apps/Gaming.tsx')
-rw-r--r--frontend/src/routes/golf/play/apps/Gaming.tsx18
1 files changed, 7 insertions, 11 deletions
diff --git a/frontend/src/routes/golf/play/apps/Gaming.tsx b/frontend/src/routes/golf/play/apps/Gaming.tsx
index 27488e3..ffabfa6 100644
--- a/frontend/src/routes/golf/play/apps/Gaming.tsx
+++ b/frontend/src/routes/golf/play/apps/Gaming.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React from "react";
type Props = {
gameId: number;
@@ -14,18 +14,14 @@ export default ({ problem, onCodeChange, score }: Props) => {
};
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 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' }}>
+ <div style={{ flex: 1, padding: "10px" }}>
<textarea
- style={{ width: '100%', height: '100%' }}
+ style={{ width: "100%", height: "100%" }}
onChange={handleTextChange}
/>
</div>