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/admin.users.tsx | 50 ++++++++++++++++++-------------------
 1 file changed, 25 insertions(+), 25 deletions(-)

(limited to 'frontend/app/routes/admin.users.tsx')

diff --git a/frontend/app/routes/admin.users.tsx b/frontend/app/routes/admin.users.tsx
index 8d9a8f2..9eed263 100644
--- a/frontend/app/routes/admin.users.tsx
+++ b/frontend/app/routes/admin.users.tsx
@@ -4,36 +4,36 @@ import { adminApiGetUsers } from "../.server/api/client";
 import { isAuthenticated } from "../.server/auth";
 
 export const meta: MetaFunction = () => {
-  return [{ title: "[Admin] Users | iOSDC Japan 2024 Albatross.swift" }];
+	return [{ title: "[Admin] Users | iOSDC Japan 2024 Albatross.swift" }];
 };
 
 export async function loader({ request }: LoaderFunctionArgs) {
-  const { user, token } = await isAuthenticated(request, {
-    failureRedirect: "/login",
-  });
-  if (!user.is_admin) {
-    throw new Error("Unauthorized");
-  }
-  const { users } = await adminApiGetUsers(token);
-  return { users };
+	const { user, token } = await isAuthenticated(request, {
+		failureRedirect: "/login",
+	});
+	if (!user.is_admin) {
+		throw new Error("Unauthorized");
+	}
+	const { users } = await adminApiGetUsers(token);
+	return { users };
 }
 
 export default function AdminUsers() {
-  const { users } = useLoaderData<typeof loader>()!;
+	const { users } = useLoaderData<typeof loader>()!;
 
-  return (
-    <div>
-      <div>
-        <h1>[Admin] Users</h1>
-        <ul>
-          {users.map((user) => (
-            <li key={user.user_id}>
-              {user.display_name} (id={user.user_id} username={user.username})
-              {user.is_admin && <span> admin</span>}
-            </li>
-          ))}
-        </ul>
-      </div>
-    </div>
-  );
+	return (
+		<div>
+			<div>
+				<h1>[Admin] Users</h1>
+				<ul>
+					{users.map((user) => (
+						<li key={user.user_id}>
+							{user.display_name} (id={user.user_id} username={user.username})
+							{user.is_admin && <span> admin</span>}
+						</li>
+					))}
+				</ul>
+			</div>
+		</div>
+	);
 }
-- 
cgit v1.2.3-70-g09d2

