- Stuff
This commit is contained in:
20
app/components/Profile/Profile.container.js
Normal file
20
app/components/Profile/Profile.container.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { getProfile } from '../selectors/profile.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'),
|
||||
nomDeBid: profile.get('nomDeBid'),
|
||||
phones: profile.get('phones'),
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(commonProfileStateToProps, null)(Profile);
|
||||
Reference in New Issue
Block a user