更新前端

This commit is contained in:
Xin Wang 2025-06-30 20:50:10 +08:00
parent 51baecdf8d
commit 8f1a3b0ac0
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ const inter = Inter({ subsets: ['latin'] });
// Import the OAuthCallbackHandler dynamically to ensure it only runs on the client // Import the OAuthCallbackHandler dynamically to ensure it only runs on the client
const OAuthCallbackHandler = dynamic( const OAuthCallbackHandler = dynamic(
() => import('@/components/ui/oauth-callback-handler').then(mod => mod.OAuthCallbackHandler), () => import('@/components/ui/oauth-callback-handler'),
{ ssr: false } { ssr: false }
); );

View File

@ -5,7 +5,7 @@ import { useRouter, useSearchParams } from 'next/navigation';
import { validateOAuthState } from '@/lib/auth'; import { validateOAuthState } from '@/lib/auth';
import { toast } from '@/hooks/use-toast'; import { toast } from '@/hooks/use-toast';
export function OAuthCallbackHandler() { export default function OAuthCallbackHandler() {
const searchParams = useSearchParams(); const searchParams = useSearchParams();
const router = useRouter(); const router = useRouter();