2020-05-29 16:27:45 +02:00

20 lines
350 B
TypeScript

import {Layout, Spin} from 'antd'
import React from 'react'
interface Props {
loading?: boolean
}
export const AuthLayout: React.FC<Props> = props => {
return (
<Spin spinning={props.loading}>
<Layout style={{
height: '100vh',
background: '#437fdc'
}}>
{props.children}
</Layout>
</Spin>
)
}