Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: remove rogue file

bautistaaa7d8b65a1a9f5
diff --git a/apps/admin/src/app/dashboard/page.tsx b/apps/admin/src/app/dashboard/page.tsx
deleted file mode 100644
index 2b17890c..00000000
--- a/apps/admin/src/app/dashboard/page.tsx
+++ /dev/null
@@ -1,26 +0,0 @@
-import { auth } from '@repo/auth/server';
-import { RoleTypes } from '@repo/db/types';
-import { Lock } from '@repo/ui/icons';
-import { redirect } from 'next/navigation';
-
-export async function Dashboard() {
- const session = await auth();
- const roles = session?.user?.role ?? [];
-
- const isMod = roles.includes(RoleTypes.MODERATOR);
- const isAdmin = roles.includes(RoleTypes.ADMIN);
- const isModOrAdmin = isAdmin || isMod;
- if (isModOrAdmin) redirect('/dashboard/reports');
- return (
- <div>
- <div className="flex flex-col gap-4">
- <div className="flex min-h-[calc(100dvh-112px)] w-full flex-col items-center justify-center space-y-2">
- <Lock className="h-8 w-8" />
- <span className="max-w-[40ch] text-center text-black/50 dark:text-white/50">
- You do not have permissions to access the page.
- </span>
- </div>
- </div>
- </div>
- );
-}