Replace one <main> tag with <div> tag, and removed a <main> tag, that wrapped prior <main> tag; <main> tag specifies the main content of a document, and there must not be more than one <main> tag!

This commit is contained in:
Dorian Niemiec 2024-07-29 20:43:07 +02:00
parent 2b24b774c4
commit 8e1b93721a
2 changed files with 3 additions and 3 deletions

View file

@ -38,10 +38,10 @@ export default function PageLayout({
children: React.ReactNode; children: React.ReactNode;
}) { }) {
return ( return (
<main className="flex flex-col min-h-screen"> <div className="flex flex-col min-h-screen">
<Navbar /> <Navbar />
<div className="flex-grow flex-1 overflow-x-hidden">{children}</div> <div className="flex-grow flex-1 overflow-x-hidden">{children}</div>
<Footer /> <Footer />
</main> </div>
); );
} }

View file

@ -30,7 +30,7 @@ export default function RootLayout({
disableTransitionOnChange disableTransitionOnChange
> >
<AuthProvider> <AuthProvider>
<main>{children}</main> {children}
<Toaster /> <Toaster />
</AuthProvider> </AuthProvider>
</ThemeProvider> </ThemeProvider>