Fix som Bugs #33

This commit is contained in:
nocnico
2025-06-05 23:36:11 +02:00
parent ea21c8d141
commit 91d811e289
7 changed files with 27 additions and 20 deletions

View File

@@ -5,6 +5,7 @@ import { Toaster } from "react-hot-toast";
import { redirect } from "next/navigation";
import { getServerSession } from "../api/auth/[...nextauth]/auth";
import { Error } from "_components/Error";
import { EmailVerification } from "_components/EmailVerification";
export const metadata: Metadata = {
title: "VAR: Hub",
@@ -47,6 +48,11 @@ export default async function RootLayout({
{/* Scrollbarer Content-Bereich */}
<div className="flex-grow bg-base-100 px-6 rounded-lg shadow-md ml-4 overflow-auto h-full max-w-full w-full">
{!session?.user.emailVerified && (
<div className="mb-4">
<EmailVerification />
</div>
)}
{children}
</div>
</div>