mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-03 08:54:49 +00:00
refactor(problemset): simplify layout by removing Suspense wrapper
Some checks failed
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
Some checks failed
Build & Push Judge4c Docker Image / build-and-push-judge4c-docker-image (., Dockerfile, judge4c) (push) Failing after 0s
This commit is contained in:
parent
41d68a4b15
commit
cb940f8608
@ -1,6 +1,4 @@
|
|||||||
import { Suspense } from "react";
|
|
||||||
import { Banner } from "@/components/banner";
|
import { Banner } from "@/components/banner";
|
||||||
import { Loading } from "@/components/loading";
|
|
||||||
import { AvatarButton } from "@/components/avatar-button";
|
import { AvatarButton } from "@/components/avatar-button";
|
||||||
|
|
||||||
interface ProblemsetLayoutProps {
|
interface ProblemsetLayoutProps {
|
||||||
@ -15,9 +13,7 @@ export default function ProblemsetLayout({ children }: ProblemsetLayoutProps) {
|
|||||||
<AvatarButton />
|
<AvatarButton />
|
||||||
</div>
|
</div>
|
||||||
<main className="h-full container mx-auto p-4">
|
<main className="h-full container mx-auto p-4">
|
||||||
<Suspense fallback={<Loading />}>
|
{children}
|
||||||
{children}
|
|
||||||
</Suspense>
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user