diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-04 17:06:23 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-04 17:06:23 +0900 |
| commit | dd3440009ae75ecc00e10e48b014ef23bb446964 (patch) | |
| tree | 487566e4fe6b7f77e95bbf3e25e02a0534e78177 /frontend/app/routes/admin.dashboard.tsx | |
| parent | 264fa15fb2ba5f0b9636cda44b64deb3c56aa99d (diff) | |
| download | phperkaigi-2025-albatross-dd3440009ae75ecc00e10e48b014ef23bb446964.tar.gz phperkaigi-2025-albatross-dd3440009ae75ecc00e10e48b014ef23bb446964.tar.zst phperkaigi-2025-albatross-dd3440009ae75ecc00e10e48b014ef23bb446964.zip | |
feat(frontend): remove admin pages
Diffstat (limited to 'frontend/app/routes/admin.dashboard.tsx')
| -rw-r--r-- | frontend/app/routes/admin.dashboard.tsx | 29 |
1 files changed, 0 insertions, 29 deletions
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> - ); -} |
