This commit is contained in:
Mike Fitzpatrick
2019-08-07 17:49:34 -04:00
parent aea9bbda96
commit dfc4daf696
14 changed files with 522 additions and 172 deletions

View 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);