aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-01 23:33:42 +0900
committernsfisis <nsfisis@gmail.com>2024-08-01 23:33:42 +0900
commit16a2909bc0670226fb639d03edd0e9b7f20b54c6 (patch)
treedde4e8af0af50213d5af2a84fae49e4b772adfc9
parent3d566086003efd952cd1535ee9d971dab5d58a15 (diff)
downloadiosdc-japan-2024-albatross-16a2909bc0670226fb639d03edd0e9b7f20b54c6.tar.gz
iosdc-japan-2024-albatross-16a2909bc0670226fb639d03edd0e9b7f20b54c6.tar.zst
iosdc-japan-2024-albatross-16a2909bc0670226fb639d03edd0e9b7f20b54c6.zip
feat(frontend): add logout button to /admin/dashboard
-rw-r--r--frontend/app/routes/admin.dashboard.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/frontend/app/routes/admin.dashboard.tsx b/frontend/app/routes/admin.dashboard.tsx
index 4eb90b5..f91406f 100644
--- a/frontend/app/routes/admin.dashboard.tsx
+++ b/frontend/app/routes/admin.dashboard.tsx
@@ -1,5 +1,5 @@
import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";
-import { Link } from "@remix-run/react";
+import { Form, Link } from "@remix-run/react";
import { ensureAdminUserLoggedIn } from "../.server/auth";
export const meta: MetaFunction = () => {
@@ -21,6 +21,9 @@ export default function AdminDashboard() {
<p>
<Link to="/admin/games">Games</Link>
</p>
+ <Form method="post" action="/logout">
+ <button type="submit">Logout</button>
+ </Form>
</div>
);
}