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>
|
||||
<head />
|
||||
<body className={cn('min-h-screen bg-background font-sans antialiased', inter.className)}>
|
||||
<SessionProvider nonce={nonce}>
|
||||
<SessionProvider>
|
||||
<ThemeProvider nonce={nonce}>
|
||||
<QueryProvider>
|
||||
{children}
|
||||
|
||||
@@ -6,13 +6,11 @@ import { AuthSync } from '@/components/auth/auth-sync';
|
||||
|
||||
export default function SessionProvider({
|
||||
children,
|
||||
nonce,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
nonce?: string;
|
||||
}) {
|
||||
return (
|
||||
<NextAuthSessionProvider nonce={nonce}>
|
||||
<NextAuthSessionProvider>
|
||||
<AuthSync />
|
||||
{children}
|
||||
</NextAuthSessionProvider>
|
||||
|
||||
Reference in New Issue
Block a user