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.dashboard.tsx | 29 -----------------------------
 1 file changed, 29 deletions(-)
 delete mode 100644 frontend/app/routes/admin.dashboard.tsx

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

diff --git a/frontend/app/routes/admin.dashboard.tsx b/frontend/app/routes/admin.dashboard.tsx
deleted file mode 100644
index 8a0c9a8..0000000
--- a/frontend/app/routes/admin.dashboard.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
-import { Form, Link } from "@remix-run/react";
-import { ensureAdminUserLoggedIn } from "../.server/auth";
-
-export const meta: MetaFunction = () => [
-	{ title: "[Admin] Dashboard | iOSDC Japan 2024 Albatross.swift" },
-];
-
-export async function loader({ request }: LoaderFunctionArgs) {
-	await ensureAdminUserLoggedIn(request);
-	return null;
-}
-
-export default function AdminDashboard() {
-	return (
-		<div>
-			<h1>[Admin] Dashboard</h1>
-			<p>
-				<Link to="/admin/users">Users</Link>
-			</p>
-			<p>
-				<Link to="/admin/games">Games</Link>
-			</p>
-			<Form method="post" action="/logout">
-				<button type="submit">Logout</button>
-			</Form>
-		</div>
-	);
-}
-- 
cgit v1.2.3-70-g09d2

