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";
|
||||
|
||||
interface SettingsLanguageServerLayoutProps {
|
||||
@ -16,7 +18,9 @@ export default function SettingsLanguageServerLayout({
|
||||
</p>
|
||||
</div>
|
||||
<Separator />
|
||||
{children}
|
||||
<Suspense fallback={<Loading />}>
|
||||
{children}
|
||||
</Suspense>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user