mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Get server console page rendering (mostly) correctly
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import React, { Suspense } from 'react';
|
||||
import Spinner from '@/components/elements/Spinner';
|
||||
import tw from 'twin.macro';
|
||||
|
||||
const SuspenseSpinner = ({ children }: { children?: React.ReactNode }) => (
|
||||
<Suspense
|
||||
fallback={
|
||||
<div className={'mx-4 w-3/4 mr-4 flex items-center justify-center'}>
|
||||
<div css={tw`mx-4 w-3/4 mr-4 flex items-center justify-center`}>
|
||||
<Spinner centered/>
|
||||
</div>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user