aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/routes/golf/play/apps
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/routes/golf/play/apps')
-rw-r--r--frontend/src/routes/golf/play/apps/Connecting.tsx4
-rw-r--r--frontend/src/routes/golf/play/apps/Failed.tsx4
-rw-r--r--frontend/src/routes/golf/play/apps/Finished.tsx4
-rw-r--r--frontend/src/routes/golf/play/apps/Gaming.tsx4
-rw-r--r--frontend/src/routes/golf/play/apps/Starting.tsx4
-rw-r--r--frontend/src/routes/golf/play/apps/Waiting.tsx4
6 files changed, 12 insertions, 12 deletions
diff --git a/frontend/src/routes/golf/play/apps/Connecting.tsx b/frontend/src/routes/golf/play/apps/Connecting.tsx
index 9207089..ead4f03 100644
--- a/frontend/src/routes/golf/play/apps/Connecting.tsx
+++ b/frontend/src/routes/golf/play/apps/Connecting.tsx
@@ -3,6 +3,6 @@ type Props = {
playerId: number;
};
-export default (_props: Props) => {
+export default function Connecting(_props: Props) {
return <div>接続中です......</div>;
-};
+}
diff --git a/frontend/src/routes/golf/play/apps/Failed.tsx b/frontend/src/routes/golf/play/apps/Failed.tsx
index 6ea9b81..cc1748d 100644
--- a/frontend/src/routes/golf/play/apps/Failed.tsx
+++ b/frontend/src/routes/golf/play/apps/Failed.tsx
@@ -3,6 +3,6 @@ type Props = {
playerId: number;
};
-export default (_props: Props) => {
+export default function Failed(_props: Props) {
return <div>エラー</div>;
-};
+}
diff --git a/frontend/src/routes/golf/play/apps/Finished.tsx b/frontend/src/routes/golf/play/apps/Finished.tsx
index bad7526..e04c7a0 100644
--- a/frontend/src/routes/golf/play/apps/Finished.tsx
+++ b/frontend/src/routes/golf/play/apps/Finished.tsx
@@ -4,7 +4,7 @@ type Props = {
result: { yourScore: number | null; opponentScore: number | null };
};
-export default ({ result }: Props) => {
+export default function Finished({ result }: Props) {
const { yourScore, opponentScore } = result;
const yourScoreToCompare = yourScore ?? Infinity;
const opponentScoreToCompare = opponentScore ?? Infinity;
@@ -24,4 +24,4 @@ export default ({ result }: Props) => {
</div>
</>
);
-};
+}
diff --git a/frontend/src/routes/golf/play/apps/Gaming.tsx b/frontend/src/routes/golf/play/apps/Gaming.tsx
index ffabfa6..9be39c8 100644
--- a/frontend/src/routes/golf/play/apps/Gaming.tsx
+++ b/frontend/src/routes/golf/play/apps/Gaming.tsx
@@ -8,7 +8,7 @@ type Props = {
score: number | null;
};
-export default ({ problem, onCodeChange, score }: Props) => {
+export default function Gaming({ problem, onCodeChange, score }: Props) {
const handleTextChange = (e: React.ChangeEvent<HTMLTextAreaElement>) => {
onCodeChange({ code: e.target.value });
};
@@ -27,4 +27,4 @@ export default ({ problem, onCodeChange, score }: Props) => {
</div>
</div>
);
-};
+}
diff --git a/frontend/src/routes/golf/play/apps/Starting.tsx b/frontend/src/routes/golf/play/apps/Starting.tsx
index ae77853..b260b30 100644
--- a/frontend/src/routes/golf/play/apps/Starting.tsx
+++ b/frontend/src/routes/golf/play/apps/Starting.tsx
@@ -4,10 +4,10 @@ type Props = {
timeLeft: number | null;
};
-export default ({ timeLeft }: Props) => {
+export default function Starting({ timeLeft }: Props) {
return (
<>
<div>対戦相手が見つかりました。{timeLeft} 秒後にゲームを開始します。</div>
</>
);
-};
+}
diff --git a/frontend/src/routes/golf/play/apps/Waiting.tsx b/frontend/src/routes/golf/play/apps/Waiting.tsx
index 306978e..b7e6f31 100644
--- a/frontend/src/routes/golf/play/apps/Waiting.tsx
+++ b/frontend/src/routes/golf/play/apps/Waiting.tsx
@@ -3,6 +3,6 @@ type Props = {
playerId: number;
};
-export default (_props: Props) => {
+export default function Waiting(_props: Props) {
return <div>対戦相手が現れるのを待っています......</div>;
-};
+}