9c4c325e5a
* remove submodules * add api and ui files * update github actions * use sparse checkout * update node setup * update checkout * update docker * change permissions * update mariadb health check * update changelog
26 lines
565 B
TypeScript
26 lines
565 B
TypeScript
import { Layout, Spin } from 'antd'
|
|
import getConfig from 'next/config'
|
|
import React from 'react'
|
|
import { NextConfigType } from '../../next.config.type'
|
|
|
|
const { publicRuntimeConfig } = getConfig() as NextConfigType
|
|
|
|
interface Props {
|
|
loading?: boolean
|
|
}
|
|
|
|
export const AuthLayout: React.FC<Props> = (props) => {
|
|
return (
|
|
<Spin spinning={props.loading || false}>
|
|
<Layout
|
|
style={{
|
|
height: '100vh',
|
|
background: publicRuntimeConfig.mainBackground,
|
|
}}
|
|
>
|
|
{props.children}
|
|
</Layout>
|
|
</Spin>
|
|
)
|
|
}
|