From dd3440009ae75ecc00e10e48b014ef23bb446964 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sun, 4 Aug 2024 17:06:23 +0900
Subject: feat(frontend): remove admin pages

---
 frontend/app/routes/admin.users.tsx | 34 ----------------------------------
 1 file changed, 34 deletions(-)
 delete mode 100644 frontend/app/routes/admin.users.tsx

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

diff --git a/frontend/app/routes/admin.users.tsx b/frontend/app/routes/admin.users.tsx
deleted file mode 100644
index c403285..0000000
--- a/frontend/app/routes/admin.users.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
-import { useLoaderData } from "@remix-run/react";
-import { adminApiGetUsers } from "../.server/api/client";
-import { ensureAdminUserLoggedIn } from "../.server/auth";
-
-export const meta: MetaFunction = () => [
-	{ title: "[Admin] Users | iOSDC Japan 2024 Albatross.swift" },
-];
-
-export async function loader({ request }: LoaderFunctionArgs) {
-	const { token } = await ensureAdminUserLoggedIn(request);
-	const { users } = await adminApiGetUsers(token);
-	return { users };
-}
-
-export default function AdminUsers() {
-	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>
-	);
-}
-- 
cgit v1.3.1

