- Registration screens stubbing and partial buildouts
This commit is contained in:
17
app/screens/Register.container.js
Normal file
17
app/screens/Register.container.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import {
|
||||
checkEmailAvailability,
|
||||
checkNomAvailability,
|
||||
registerUser,
|
||||
} from '../actions/profile.js';
|
||||
|
||||
import Register from './Register.js';
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
checkEmail: (email) => dispatch(checkEmailAvailability(email)),
|
||||
checkNomDeBid: (nomDeBid) => dispatch(checkNomAvailability(nomDeBid)),
|
||||
doRegistration: (user) => dispatch(registerUser(user)),
|
||||
});
|
||||
|
||||
export default connect(null, mapDispatchToProps)(Register);
|
||||
Reference in New Issue
Block a user