You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
796 B

import React, { useState } from 'react';
import { useSelector } from 'react-redux';
import { Button, Input, Title, SmallText } from '../../../UI';
export const Main: React.FC = () => {
}
return(
<>
<Title> Вход в систему </Title>
<Input label={'Логин'} name={'login'} type={'text'} onChange={onChange} value={_data.login}/>
<Input label={'Пароль'} name={'password'} type={'password'} onChange={onChange} value={_data.password}/>
<Button onClick={getToken} align={''} styles={'yellow'}>Войти</Button>
<Button onClick={handleEntrance} align={''} styles={'yellow'}>Забыл/Сбросить пароль</Button>
<SmallText>{information}</SmallText>
</>
)
}