Skip to content

Commit 63e1d16

Browse files
committed
use suspense
1 parent 1c52051 commit 63e1d16

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • apps/website/app/(home)/auth/token

apps/website/app/(home)/auth/token/page.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { LoginWithToken } from "~/components/auth/LoginWithToken";
2+
import { Suspense } from "react";
23

34
const Page = () => (
45
<div className="flex min-h-svh w-full items-center justify-center p-6 md:p-10">
5-
<LoginWithToken />
6+
<Suspense fallback={<>Logging in</>}>
7+
<LoginWithToken />
8+
</Suspense>
69
</div>
710
);
811

0 commit comments

Comments
 (0)