Michael Schramm 8713c0a8c6 - ability to change user passwords
- 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
2021-05-02 12:43:55 +02:00

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>
)
}