mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 20:19:49 +02:00
feat: less CLS loader
This commit is contained in:
1 parent
145bc84fb1
commit
85d350a912
1 file changed
+9
-1
@@ -85,7 +85,15 @@ export default function ToolsLayout({ children }: ToolsLayoutProps) {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Suspense fallback={<Loader />}>{children}</Suspense>
|
<Suspense
|
||||||
|
fallback={
|
||||||
|
<div style={{ flex: 1 }}>
|
||||||
|
<Loader />
|
||||||
|
</div>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</Suspense>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user