Skip to content

Commit

Permalink
chore: remove unneded Suspense
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestoresende committed May 28, 2023
1 parent 335c86c commit c4b50b0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions templates/next-graphql/packages/web/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Suspense } from 'react';
import { cookies } from 'next/headers';
import Image from 'next/image';
import Link from 'next/link';
Expand All @@ -17,7 +16,6 @@ export const metadata = {
};

export default async function LoginPage() {
//@ts-ignore
const authRequest = auth.handleRequest({ cookies });
const { user } = await authRequest.validateUser();
if (user) redirect('/protected');
Expand Down Expand Up @@ -45,9 +43,7 @@ export default async function LoginPage() {
Enter your email and password bellow to sign in
</p>
</div>
<Suspense>
<UserAuthForm signupForm={false} loginForm />
</Suspense>
<p className="px-8 text-center text-sm text-slate-400">
Dont&apos;t have an account?{' '}
<Link
Expand Down

0 comments on commit c4b50b0

Please sign in to comment.