[dyad] Fixing a persistent build error - wrote 1 file(s)
This commit is contained in:
@@ -22,20 +22,19 @@ export async function generateMetadata({ params }: { params: { locale: string }
|
||||
};
|
||||
}
|
||||
|
||||
export default async function RootLayout({
|
||||
export default function RootLayout({
|
||||
children,
|
||||
params,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
params: { locale: string };
|
||||
}>) {
|
||||
const { locale } = params;
|
||||
return (
|
||||
<html lang={locale} suppressHydrationWarning>
|
||||
<html lang={params.locale} suppressHydrationWarning>
|
||||
<body
|
||||
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||
>
|
||||
<Providers locale={locale}>
|
||||
<Providers locale={params.locale}>
|
||||
{children}
|
||||
</Providers>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user