Skip to content

Commit

Permalink
Merge pull request #5 from Quinta0/userlogin
Browse files Browse the repository at this point in the history
Layout to the rescue?
  • Loading branch information
Quinta0 authored Aug 22, 2024
2 parents 5f9ff10 + d498f69 commit 185cd16
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { AuthProvider } from "@/components/AuthProvider";
import ErrorBoundary from "@/components/ErrorBoundary";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -10,13 +12,19 @@ export const metadata: Metadata = {
};

export default function RootLayout({
children,
}: Readonly<{
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={inter.className}>{children}</body>
</html>
<html lang="en">
<body className={inter.className}>
<AuthProvider>
<ErrorBoundary>
{children}
</ErrorBoundary>
</AuthProvider>
</body>
</html>
);
}

0 comments on commit 185cd16

Please sign in to comment.