mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-13 12:55:19 +00:00
Fix build with suspense boundary
This commit is contained in:
parent
e0d363420b
commit
2111a77a5c
1 changed files with 4 additions and 1 deletions
|
|
@ -1,9 +1,12 @@
|
||||||
import { LoginForm } from "./components/loginForm";
|
import { LoginForm } from "./components/loginForm";
|
||||||
|
import { Suspense } from "react";
|
||||||
|
|
||||||
export default async function Login() {
|
export default async function Login() {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col justify-center items-center h-screen">
|
<div className="flex flex-col justify-center items-center h-screen">
|
||||||
|
<Suspense fallback={<div>Loading...</div>}>
|
||||||
<LoginForm />
|
<LoginForm />
|
||||||
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue