From 20c4d9e8ba120fefca3cc1e91119f55186cc793b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 23 Jul 2024 21:21:51 +0900 Subject: frontend: format --- frontend/src/routes/golf/watch/apps/Connecting.tsx | 4 ++-- frontend/src/routes/golf/watch/apps/Failed.tsx | 4 ++-- frontend/src/routes/golf/watch/apps/Gaming.tsx | 10 ++++++++-- frontend/src/routes/golf/watch/apps/Waiting.tsx | 4 ++-- 4 files changed, 14 insertions(+), 8 deletions(-) (limited to 'frontend/src/routes/golf/watch/apps') diff --git a/frontend/src/routes/golf/watch/apps/Connecting.tsx b/frontend/src/routes/golf/watch/apps/Connecting.tsx index 8dc7a8c..73d28eb 100644 --- a/frontend/src/routes/golf/watch/apps/Connecting.tsx +++ b/frontend/src/routes/golf/watch/apps/Connecting.tsx @@ -2,6 +2,6 @@ type Props = { gameId: number; }; -export default (_props: Props) => { +export default function Connecting(_props: Props) { return
接続中です......
; -}; +} diff --git a/frontend/src/routes/golf/watch/apps/Failed.tsx b/frontend/src/routes/golf/watch/apps/Failed.tsx index 3c29d74..2727663 100644 --- a/frontend/src/routes/golf/watch/apps/Failed.tsx +++ b/frontend/src/routes/golf/watch/apps/Failed.tsx @@ -2,6 +2,6 @@ type Props = { gameId: number; }; -export default (_props: Props) => { +export default function Failed(_props: Props) { return
エラー
; -}; +} diff --git a/frontend/src/routes/golf/watch/apps/Gaming.tsx b/frontend/src/routes/golf/watch/apps/Gaming.tsx index 623cb08..3f9c195 100644 --- a/frontend/src/routes/golf/watch/apps/Gaming.tsx +++ b/frontend/src/routes/golf/watch/apps/Gaming.tsx @@ -7,7 +7,13 @@ type Props = { codeB: string | null; }; -export default ({ problem, scoreA, codeA, scoreB, codeB }: Props) => { +export default function Gaming({ + problem, + scoreA, + codeA, + scoreB, + codeB, +}: Props) { return ( <>
@@ -35,4 +41,4 @@ export default ({ problem, scoreA, codeA, scoreB, codeB }: Props) => {
); -}; +} diff --git a/frontend/src/routes/golf/watch/apps/Waiting.tsx b/frontend/src/routes/golf/watch/apps/Waiting.tsx index e8d5390..a82ee69 100644 --- a/frontend/src/routes/golf/watch/apps/Waiting.tsx +++ b/frontend/src/routes/golf/watch/apps/Waiting.tsx @@ -2,6 +2,6 @@ type Props = { gameId: number; }; -export default (_props: Props) => { +export default function Waiting(_props: Props) { return
対戦相手が現れるのを待っています......
; -}; +} -- cgit v1.2.3-70-g09d2