From 8f1a3b0ac0b42840a72de5568863a848bd2e8f94 Mon Sep 17 00:00:00 2001 From: Xin Wang Date: Mon, 30 Jun 2025 20:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=89=8D=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/layout.tsx | 2 +- components/ui/oauth-callback-handler.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index e8c77e4..83cfb3c 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -9,7 +9,7 @@ const inter = Inter({ subsets: ['latin'] }); // Import the OAuthCallbackHandler dynamically to ensure it only runs on the client const OAuthCallbackHandler = dynamic( - () => import('@/components/ui/oauth-callback-handler').then(mod => mod.OAuthCallbackHandler), + () => import('@/components/ui/oauth-callback-handler'), { ssr: false } ); diff --git a/components/ui/oauth-callback-handler.tsx b/components/ui/oauth-callback-handler.tsx index 8caa8a6..d11e4a1 100644 --- a/components/ui/oauth-callback-handler.tsx +++ b/components/ui/oauth-callback-handler.tsx @@ -5,7 +5,7 @@ import { useRouter, useSearchParams } from 'next/navigation'; import { validateOAuthState } from '@/lib/auth'; import { toast } from '@/hooks/use-toast'; -export function OAuthCallbackHandler() { +export default function OAuthCallbackHandler() { const searchParams = useSearchParams(); const router = useRouter();