From 2b36e3c58ef235cbef5985ff297c06b0389922f4 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Mon, 14 Nov 2022 01:34:17 -0800 Subject: [PATCH] fix admin 404 --- client/app/admin/{components/admin.tsx => page.tsx} | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) rename client/app/admin/{components/admin.tsx => page.tsx} (76%) diff --git a/client/app/admin/components/admin.tsx b/client/app/admin/page.tsx similarity index 76% rename from client/app/admin/components/admin.tsx rename to client/app/admin/page.tsx index e4a45ff7..26803b8d 100644 --- a/client/app/admin/components/admin.tsx +++ b/client/app/admin/page.tsx @@ -1,11 +1,11 @@ import { getAllPosts, getAllUsers } from "@lib/server/prisma" import { getCurrentUser } from "@lib/server/session" import { notFound } from "next/navigation" -import styles from "./admin.module.css" -import PostTable from "./post-table" -import UserTable from "./user-table" +import styles from "./components/admin.module.css" +import PostTable from "./components/post-table" +import UserTable from "./components/user-table" -const Admin = async () => { +const AdminPage = async () => { const user = await getCurrentUser() if (!user) { return notFound() @@ -36,4 +36,4 @@ const Admin = async () => { ) } -export default Admin +export default AdminPage