Исправлена загрузка на странице входа

This commit is contained in:
avsirotkin 2022-04-05 10:56:30 +05:00
parent 8107a4a3a5
commit b94561aa62

View File

@ -32,29 +32,31 @@ export const Login = memo(() => {
), [history, location]) ), [history, location])
return ( return (
<LoaderPortal show={showLoader} className={'loader-container login_page shadow'}> <div className={'login_page shadow'}>
<div style={{ display: 'flex', flexDirection: 'column' }}> <div style={{ display: 'flex', flexDirection: 'column' }}>
<Logo style={{ marginBottom: '10px' }}/> <Logo style={{ marginBottom: '10px' }}/>
<Card title={'Система мониторинга'} className={'shadow'} bordered={true} style={{ width: 350 }}> <LoaderPortal show={showLoader}>
<Form onFinish={handleLogin}> <Card title={'Система мониторинга'} className={'shadow'} bordered={true} style={{ width: 350 }}>
<Form.Item name={'login'} rules={loginRules}> <Form onFinish={handleLogin}>
<Input placeholder={'Пользователь'} prefix={<UserOutlined />} /> <Form.Item name={'login'} rules={loginRules}>
</Form.Item> <Input placeholder={'Пользователь'} prefix={<UserOutlined />} />
<Form.Item name={'password'} rules={passwordRules}> </Form.Item>
<Input.Password placeholder={'Пароль'} prefix={<LockOutlined />} /> <Form.Item name={'password'} rules={passwordRules}>
</Form.Item> <Input.Password placeholder={'Пароль'} prefix={<LockOutlined />} />
<Form.Item> </Form.Item>
<div className={'login-button'}> <Form.Item>
<Button type={'primary'} htmlType={'submit'}>Вход</Button> <div className={'login-button'}>
<Button type={'primary'} htmlType={'submit'}>Вход</Button>
</div>
</Form.Item>
<div className={'text-align-center'}>
<Link to={`/register`}>Отправить заявку на регистрацию</Link>
</div> </div>
</Form.Item> </Form>
<div className={'text-align-center'}> </Card>
<Link to={`/register`}>Отправить заявку на регистрацию</Link> </LoaderPortal>
</div>
</Form>
</Card>
</div> </div>
</LoaderPortal> </div>
) )
}) })