aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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>
);
}