Skip to content
Snippets Groups Projects
Commit 96dc09f8 authored by Giannis Kopanas's avatar Giannis Kopanas
Browse files

feat(signup): formik enable for signup

parent cd63d9df
No related branches found
No related tags found
No related merge requests found
......@@ -21,11 +21,11 @@ const Logo = styled.div`
`
const UsernameInput = props => (
<TextField label="Username" {...props.input} placeholder="Username" />
<TextField label="Username" {...props.field} placeholder="Username" />
)
const EmailInput = props => (
<TextField label="Email" {...props.input} placeholder="Email" type="email" />
<TextField label="Email" {...props.field} placeholder="Email" type="email" />
)
const PasswordInput = props => (
<TextField
......
import { compose } from 'recompose'
import { withFormik } from 'formik'
import { signupUser } from './actions'
import Signup from './Signup'
const handleSubmit = (values, dispatch) => {
dispatch(signupUser(values))
}
const enhancedFormik = withFormik({
initialValues: {
username: '',
email: '',
password: '',
},
displayName: 'signup',
handleSubmit,
})(Signup)
export default compose()(enhancedFormik)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment