Skip to content

Commit

Permalink
fix: suspense wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwebsdev committed Nov 8, 2024
1 parent 9418f01 commit 18478f4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/app/auth/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
'use client';
import { useEffect } from 'react';
import { Suspense, useEffect } from 'react';
import Login from '../../components/auth/Login';
import { useRouter, useSearchParams } from 'next/navigation';
import { authService } from '@/lib/service';

export default function AuthPage() {
export default function AUthPage() {
return (
<Suspense>
<Auth />
</Suspense>
);
}

function Auth() {
const router = useRouter();
const searchParams = useSearchParams();
const redirect = searchParams.get('redirect') || '/';
Expand Down

0 comments on commit 18478f4

Please sign in to comment.