- Stuff
This commit is contained in:
17
app/components/Profile/EditProfile.container.js
Normal file
17
app/components/Profile/EditProfile.container.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { commonProfileStateToProps } from './Profile.container.js';
|
||||
import EditProfile from './EditProfile.js';
|
||||
|
||||
const matchStateToProps = (dispatch) => {
|
||||
const commonProps = commonProfileStateToProps(state);
|
||||
const profile = getProfile(state);
|
||||
|
||||
return {
|
||||
...commonProps,
|
||||
firstName: profile.get('firstName'),
|
||||
lastName: profile.get('lastName'),
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(matchStateToProps, null)(EditProfile);
|
||||
Reference in New Issue
Block a user