diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-01 22:28:29 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-01 22:28:29 +0900 |
| commit | 4b206bf707ef5d092ea9579fe82a06ee1d6e0337 (patch) | |
| tree | f3eb93e716cf1c6da2bccc112ce3b7cebff95222 /frontend/app/routes/admin.dashboard.tsx | |
| parent | 7ccf1da2f7448d93f8209982813e4097af13fd70 (diff) | |
| parent | 3a59aa595b1674e9286f4df0035b5b1e38e6957d (diff) | |
| download | phperkaigi-2025-albatross-4b206bf707ef5d092ea9579fe82a06ee1d6e0337.tar.gz phperkaigi-2025-albatross-4b206bf707ef5d092ea9579fe82a06ee1d6e0337.tar.zst phperkaigi-2025-albatross-4b206bf707ef5d092ea9579fe82a06ee1d6e0337.zip | |
Merge branch 'feat/biome'
Diffstat (limited to 'frontend/app/routes/admin.dashboard.tsx')
| -rw-r--r-- | frontend/app/routes/admin.dashboard.tsx | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/frontend/app/routes/admin.dashboard.tsx b/frontend/app/routes/admin.dashboard.tsx index 1d172af..ce3e910 100644 --- a/frontend/app/routes/admin.dashboard.tsx +++ b/frontend/app/routes/admin.dashboard.tsx @@ -3,29 +3,29 @@ import { Link } from "@remix-run/react"; import { isAuthenticated } from "../.server/auth"; export const meta: MetaFunction = () => { - return [{ title: "[Admin] Dashboard | iOSDC Japan 2024 Albatross.swift" }]; + return [{ title: "[Admin] Dashboard | iOSDC Japan 2024 Albatross.swift" }]; }; export async function loader({ request }: LoaderFunctionArgs) { - const { user } = await isAuthenticated(request, { - failureRedirect: "/login", - }); - if (!user.is_admin) { - throw new Error("Unauthorized"); - } - return null; + const { user } = await isAuthenticated(request, { + failureRedirect: "/login", + }); + if (!user.is_admin) { + throw new Error("Unauthorized"); + } + 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> - </div> - ); + return ( + <div> + <h1>[Admin] Dashboard</h1> + <p> + <Link to="/admin/users">Users</Link> + </p> + <p> + <Link to="/admin/games">Games</Link> + </p> + </div> + ); } |
