mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-17 14:56:36 +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 { Loading } from "@/components/loading";
|
||||
import { AvatarButton } from "@/components/avatar-button";
|
||||
|
||||
interface ProblemsetLayoutProps {
|
||||
@ -15,9 +13,7 @@ export default function ProblemsetLayout({ children }: ProblemsetLayoutProps) {
|
||||
<AvatarButton />
|
||||
</div>
|
||||
<main className="h-full container mx-auto p-4">
|
||||
<Suspense fallback={<Loading />}>
|
||||
{children}
|
||||
</Suspense>
|
||||
{children}
|
||||
</main>
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user