From 8f2cceacc8fde328033de7f05bb12e7b1246dd86 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Thu, 1 Aug 2024 22:22:12 +0900
Subject: chore(frontend): [biome] format

---
 frontend/app/routes/golf.$gameId.play.tsx | 54 +++++++++++++++----------------
 1 file changed, 27 insertions(+), 27 deletions(-)

(limited to 'frontend/app/routes/golf.$gameId.play.tsx')

diff --git a/frontend/app/routes/golf.$gameId.play.tsx b/frontend/app/routes/golf.$gameId.play.tsx
index 0ce3353..d498200 100644
--- a/frontend/app/routes/golf.$gameId.play.tsx
+++ b/frontend/app/routes/golf.$gameId.play.tsx
@@ -7,40 +7,40 @@ import GolfPlayApp from "../components/GolfPlayApp.client";
 import GolfPlayAppConnecting from "../components/GolfPlayApps/GolfPlayAppConnecting";
 
 export const meta: MetaFunction<typeof loader> = ({ data }) => {
-  return [
-    {
-      title: data
-        ? `Golf Playing ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift`
-        : "Golf Playing | iOSDC Japan 2024 Albatross.swift",
-    },
-  ];
+	return [
+		{
+			title: data
+				? `Golf Playing ${data.game.display_name} | iOSDC Japan 2024 Albatross.swift`
+				: "Golf Playing | iOSDC Japan 2024 Albatross.swift",
+		},
+	];
 };
 
 export async function loader({ params, request }: LoaderFunctionArgs) {
-  const { token } = await isAuthenticated(request, {
-    failureRedirect: "/login",
-  });
+	const { token } = await isAuthenticated(request, {
+		failureRedirect: "/login",
+	});
 
-  const fetchGame = async () => {
-    return (await apiGetGame(token, Number(params.gameId))).game;
-  };
-  const fetchSockToken = async () => {
-    return (await apiGetToken(token)).token;
-  };
+	const fetchGame = async () => {
+		return (await apiGetGame(token, Number(params.gameId))).game;
+	};
+	const fetchSockToken = async () => {
+		return (await apiGetToken(token)).token;
+	};
 
-  const [game, sockToken] = await Promise.all([fetchGame(), fetchSockToken()]);
-  return {
-    game,
-    sockToken,
-  };
+	const [game, sockToken] = await Promise.all([fetchGame(), fetchSockToken()]);
+	return {
+		game,
+		sockToken,
+	};
 }
 
 export default function GolfPlay() {
-  const { game, sockToken } = useLoaderData<typeof loader>();
+	const { game, sockToken } = useLoaderData<typeof loader>();
 
-  return (
-    <ClientOnly fallback={<GolfPlayAppConnecting />}>
-      {() => <GolfPlayApp game={game} sockToken={sockToken} />}
-    </ClientOnly>
-  );
+	return (
+		<ClientOnly fallback={<GolfPlayAppConnecting />}>
+			{() => <GolfPlayApp game={game} sockToken={sockToken} />}
+		</ClientOnly>
+	);
 }
-- 
cgit v1.3.1

