fixed styles, improved PaginatedTableStyling

This commit is contained in:
PxlLoewe
2025-02-22 23:20:46 +01:00
parent 52888787cf
commit cd5c57beba
11 changed files with 87 additions and 69 deletions

View File

@@ -6,6 +6,9 @@ import {
} from '@radix-ui/react-icons';
import { HorizontalNav, VerticalNav } from '../_components/Nav';
import { Toaster } from 'react-hot-toast';
import { redirect } from 'next/navigation';
import { getServerSession } from '../api/auth/[...nextauth]/auth';
import { headers } from 'next/headers';
export const metadata: Metadata = {
title: 'Create Next App',
@@ -17,6 +20,10 @@ export default async function RootLayout({
}: Readonly<{
children: React.ReactNode;
}>) {
const session = await getServerSession();
if (!session) redirect(`/login`);
return (
<div
className="hero min-h-screen"