|
|
|
@ -10,8 +10,8 @@ const HeaderWrapper = ({ children, header, loading, backTo, ...props }) => {
|
|
|
|
|
} = theme.useToken();
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
<Spin spinning={loading || false}>
|
|
|
|
|
<Layout className=' bg-white'>
|
|
|
|
|
<Spin spinning={loading || false} wrapperClassName='h-full [&_.ant-spin-container]:h-full' >
|
|
|
|
|
<Layout className=' bg-white h-full'>
|
|
|
|
|
<Header className='header px-6 h-10 ' style={{ background: 'white' }}>
|
|
|
|
|
<Flex justify={'space-between'} align={'center'} className='h-full'>
|
|
|
|
|
{/* {header} */}
|
|
|
|
@ -20,7 +20,7 @@ const HeaderWrapper = ({ children, header, loading, backTo, ...props }) => {
|
|
|
|
|
</Flex>
|
|
|
|
|
</Header>
|
|
|
|
|
<Divider className='my-2' />
|
|
|
|
|
<Content className='' style={{ backgroundColor: colorBgContainer }}>
|
|
|
|
|
<Content className='overflow-auto' style={{ backgroundColor: colorBgContainer }}>
|
|
|
|
|
{children || <Outlet />}
|
|
|
|
|
</Content>
|
|
|
|
|
</Layout>
|
|
|
|
|