import { TextField, Typography, IconButton, InputAdornment, Grid, Button } from "@mui/material" import { Visibility, VisibilityOff } from '@mui/icons-material'; import { useState } from "react" import { actionFullRegister } from "../actions/actionLogin"; import { connect } from "react-redux"; function RegisterPage ({onRegister}) { const [values, setValues] = useState({ login: '', firstPassword: '', secondPassword: '', nickname: '', showPassword: '' }) const [errorLogin, setErrorLogin] = useState(false); const [errorPass, setErrorPass] = useState(false); const handleChange = (prop) => (e) => { setValues({...values, [prop] : e.target.value}) } const handleClickShowPassword = () => { setValues({ ...values, showPassword : !values.showPassword }) } return (
Регистрация
) } export default connect(null, {onRegister: actionFullRegister})(RegisterPage)