1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

made saga open register dialog

This commit is contained in:
Fedor Katurov 2020-08-20 11:18:41 +07:00
parent 837b4ee6f3
commit f1463ed5ea
6 changed files with 19 additions and 13 deletions

View file

@ -7,13 +7,14 @@ import { DialogTitle } from '~/components/dialogs/DialogTitle';
import { Group } from '~/components/containers/Group';
import { InputText } from '~/components/input/InputText';
import styles from './styles.scss';
import { selectAuthRegisterSocial } from '~/redux/auth/selectors';
const mapStateToProps = () => ({});
const mapStateToProps = selectAuthRegisterSocial;
const mapDispatchToProps = {};
type Props = ReturnType<typeof mapStateToProps> & typeof mapDispatchToProps & IDialogProps & {};
const LoginSocialRegisterDialogUnconnected: FC<Props> = ({ onRequestClose }) => {
const LoginSocialRegisterDialogUnconnected: FC<Props> = ({ onRequestClose, token }) => {
const [username, setUsername] = useState('');
return (
@ -22,6 +23,7 @@ const LoginSocialRegisterDialogUnconnected: FC<Props> = ({ onRequestClose }) =>
<div className={styles.wrap}>
<Group>
<DialogTitle>Добро пожаловать в семью!</DialogTitle>
<InputText handler={setUsername} value={token} title="Token" />
<InputText handler={setUsername} value={username} title="Юзернэйм" />
<InputText handler={setUsername} value={username} title="Пароль" type="password" />
</Group>