mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-22 08:13:45 +02:00
A few adjustments for chunking the new file edit page
This commit is contained in:
14
resources/scripts/components/elements/SuspenseSpinner.tsx
Normal file
14
resources/scripts/components/elements/SuspenseSpinner.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React, { Suspense } from 'react';
|
||||
import Spinner from '@/components/elements/Spinner';
|
||||
|
||||
export default ({ children }: { children?: React.ReactNode }) => (
|
||||
<Suspense
|
||||
fallback={
|
||||
<div className={'mx-4 w-3/4 mr-4 flex items-center justify-center'}>
|
||||
<Spinner centered={true} size={'normal'}/>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</Suspense>
|
||||
);
|
||||
Reference in New Issue
Block a user