690402:1503 Fix Property 'nonce' does not exist
This commit is contained in:
@@ -27,7 +27,7 @@ export default async function RootLayout({ children }: RootLayoutProps) {
|
|||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<head />
|
<head />
|
||||||
<body className={cn('min-h-screen bg-background font-sans antialiased', inter.className)}>
|
<body className={cn('min-h-screen bg-background font-sans antialiased', inter.className)}>
|
||||||
<SessionProvider nonce={nonce}>
|
<SessionProvider>
|
||||||
<ThemeProvider nonce={nonce}>
|
<ThemeProvider nonce={nonce}>
|
||||||
<QueryProvider>
|
<QueryProvider>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -6,13 +6,11 @@ import { AuthSync } from '@/components/auth/auth-sync';
|
|||||||
|
|
||||||
export default function SessionProvider({
|
export default function SessionProvider({
|
||||||
children,
|
children,
|
||||||
nonce,
|
|
||||||
}: {
|
}: {
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
nonce?: string;
|
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<NextAuthSessionProvider nonce={nonce}>
|
<NextAuthSessionProvider>
|
||||||
<AuthSync />
|
<AuthSync />
|
||||||
{children}
|
{children}
|
||||||
</NextAuthSessionProvider>
|
</NextAuthSessionProvider>
|
||||||
|
|||||||
Reference in New Issue
Block a user