mirror of
https://github.com/IT4Change/ohmyform-ui.git
synced 2025-12-13 09:45:50 +00:00
- add default page background - add environment list in [doc](doc/environment.md) - combined notificationts to become more versatile - use exported hooks for graphql - links at the bottom for new users - fixes for hide contrib setting - upgrad all packages
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>
|
|
)
|
|
}
|