[ABANDONED] React/Redux front end for the Flexor social network.
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.
 
 

24 lines
588 B

import { connect } from 'react-redux'
import { getStep } from 'src/selectors/registration'
import { initForm, initField } from 'src/actions/forms'
import { AppState, AppThunkDispatch } from 'src/types'
import Login from './login'
const mapStateToProps = (state: AppState) => ({
step: getStep(state),
})
const mapDispatchToProps = (dispatch: AppThunkDispatch) => ({
initForm: () => {
dispatch(initForm())
dispatch(initField('name'))
dispatch(initField('password'))
},
})
export default connect(
mapStateToProps,
mapDispatchToProps
)(Login)