- more tweaks and fixes.... still not running
This commit is contained in:
@@ -1,24 +1,9 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { getProfile, isGeneratedNomDeBid } from '../selectors/profile.js';
|
||||
|
||||
import { matchStateToProps } from './Profile.stateProps.js';
|
||||
import Profile from './Profile.js';
|
||||
|
||||
export const commonProfileStateToProps = (state) => {
|
||||
const profile = getProfile(state);
|
||||
|
||||
return {
|
||||
addresses: profile.get('addresses').toArray(),
|
||||
avatar: profile.get('avatar'),
|
||||
email: profile.get('email'),
|
||||
initials: profile.get('initials'),
|
||||
isGeneratedNomDeBid: isGeneratedNomDeBid(state),
|
||||
nomDeBid: profile.get('nomDeBid'),
|
||||
phones: profile.get('phones'),
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(
|
||||
commonProfileStateToProps,
|
||||
matchStateToProps,
|
||||
null,
|
||||
)(Profile);
|
||||
|
||||
Reference in New Issue
Block a user