690402:1503 Fix Property 'nonce' does not exist
CI / CD Pipeline / build (push) Successful in 5m12s
CI / CD Pipeline / deploy (push) Successful in 5m26s

This commit is contained in:
Nattanin
2026-04-02 15:03:05 +07:00
parent 9e40fcc118
commit 92a9b6898b
2 changed files with 2 additions and 4 deletions
+1 -1
View File
@@ -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}
+1 -3
View File
@@ -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>