File size: 454 Bytes
f5071ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import { connect } from 'react-redux';
import SignupForm from './signup_form';
import { signup } from '../../actions/session_actions';
const mapStateToProps = (state,ownProps) => {
return {
errors: state.errors.session,
formType: "SIGNUP"
};
};
const mapDispatchToProps = (dispatch,ownProps) => {
return {
processForm: (user)=> dispatch(signup(user))
};
};
export default connect(mapStateToProps , mapDispatchToProps)(SignupForm);
|