From 46f9ba5d8c295454381655e6ec02ad3cf8bd79db Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Fri, 6 Mar 2026 02:18:40 +0900
Subject: style: switch from tab to space indentation in frontend and
 worker/php

Update biome.json indentStyle from "tab" to "space" and reformat all
files in both workspaces.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---
 frontend/app/pages/GolfProblemPreviewPage.tsx | 90 +++++++++++++--------------
 1 file changed, 45 insertions(+), 45 deletions(-)

(limited to 'frontend/app/pages/GolfProblemPreviewPage.tsx')

diff --git a/frontend/app/pages/GolfProblemPreviewPage.tsx b/frontend/app/pages/GolfProblemPreviewPage.tsx
index 4a84809..9eee691 100644
--- a/frontend/app/pages/GolfProblemPreviewPage.tsx
+++ b/frontend/app/pages/GolfProblemPreviewPage.tsx
@@ -10,54 +10,54 @@ import { usePageTitle } from "../hooks/usePageTitle";
 type Game = components["schemas"]["Game"];
 
 export default function GolfProblemPreviewPage({ gameId }: { gameId: string }) {
-	const [, navigate] = useLocation();
-	const [game, setGame] = useState<Game | null>(null);
-	const [loading, setLoading] = useState(true);
+  const [, navigate] = useLocation();
+  const [game, setGame] = useState<Game | null>(null);
+  const [loading, setLoading] = useState(true);
 
-	const gameIdNum = Number(gameId);
+  const gameIdNum = Number(gameId);
 
-	usePageTitle(
-		game
-			? `${game.display_name} - 問題プレビュー | ${APP_NAME}`
-			: `問題プレビュー | ${APP_NAME}`,
-	);
+  usePageTitle(
+    game
+      ? `${game.display_name} - 問題プレビュー | ${APP_NAME}`
+      : `問題プレビュー | ${APP_NAME}`,
+  );
 
-	useEffect(() => {
-		const apiClient = createApiClient();
-		apiClient
-			.getGame(gameIdNum)
-			.then(({ game }) => setGame(game))
-			.catch(() => navigate("/dashboard"))
-			.finally(() => setLoading(false));
-	}, [gameIdNum, navigate]);
+  useEffect(() => {
+    const apiClient = createApiClient();
+    apiClient
+      .getGame(gameIdNum)
+      .then(({ game }) => setGame(game))
+      .catch(() => navigate("/dashboard"))
+      .finally(() => setLoading(false));
+  }, [gameIdNum, navigate]);
 
-	if (loading || !game) {
-		return (
-			<div className="min-h-screen bg-gray-100 flex items-center justify-center">
-				<p className="text-gray-500">Loading...</p>
-			</div>
-		);
-	}
+  if (loading || !game) {
+    return (
+      <div className="min-h-screen bg-gray-100 flex items-center justify-center">
+        <p className="text-gray-500">Loading...</p>
+      </div>
+    );
+  }
 
-	return (
-		<div className="p-6 bg-gray-100 min-h-screen flex flex-col items-center gap-4">
-			<h1 className="text-3xl font-bold text-gray-800">{game.display_name}</h1>
-			<div className="w-full max-w-3xl flex flex-col gap-4">
-				<ProblemColumnContent
-					description={game.problem.description}
-					language={game.problem.language}
-					sampleCode={game.problem.sample_code}
-				/>
-			</div>
-			<div className="flex gap-4">
-				<NavigateLink to={`/golf/${game.game_id}/play`}>
-					対戦ページへ
-				</NavigateLink>
-				<NavigateLink to={`/golf/${game.game_id}/watch`}>
-					観戦ページへ
-				</NavigateLink>
-			</div>
-			<NavigateLink to="/dashboard">ダッシュボードへ戻る</NavigateLink>
-		</div>
-	);
+  return (
+    <div className="p-6 bg-gray-100 min-h-screen flex flex-col items-center gap-4">
+      <h1 className="text-3xl font-bold text-gray-800">{game.display_name}</h1>
+      <div className="w-full max-w-3xl flex flex-col gap-4">
+        <ProblemColumnContent
+          description={game.problem.description}
+          language={game.problem.language}
+          sampleCode={game.problem.sample_code}
+        />
+      </div>
+      <div className="flex gap-4">
+        <NavigateLink to={`/golf/${game.game_id}/play`}>
+          対戦ページへ
+        </NavigateLink>
+        <NavigateLink to={`/golf/${game.game_id}/watch`}>
+          観戦ページへ
+        </NavigateLink>
+      </div>
+      <NavigateLink to="/dashboard">ダッシュボードへ戻る</NavigateLink>
+    </div>
+  );
 }
-- 
cgit v1.3.1

