mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(settings): add Suspense with Loading fallback in language server layout
This commit is contained in:
parent
ceb01aec59
commit
7eb6eedf22
@ -1,3 +1,5 @@
|
|||||||
|
import { Suspense } from "react";
|
||||||
|
import { Loading } from "@/components/loading";
|
||||||
import { Separator } from "@/components/ui/separator";
|
import { Separator } from "@/components/ui/separator";
|
||||||
|
|
||||||
interface SettingsLanguageServerLayoutProps {
|
interface SettingsLanguageServerLayoutProps {
|
||||||
@ -16,7 +18,9 @@ export default function SettingsLanguageServerLayout({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Separator />
|
<Separator />
|
||||||
|
<Suspense fallback={<Loading />}>
|
||||||
{children}
|
{children}
|
||||||
|
</Suspense>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user