mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 23:12:23 +00:00
refactor(problemset): simplify layout by removing Suspense wrapper
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