Files
Eventment/app/components/Profile/ViewProfile.container.js
Mike Fitzpatrick f0460a1b76 - more
2019-08-12 17:44:01 -04:00

22 lines
526 B
JavaScript

import { connect } from 'react-redux';
import { getProfile } from '../../selectors/profile.js';
import { matchStateToProps as matchCommonStateProps } from './Profile.stateProps.js';
import ViewProfile from './ViewProfile.js';
const matchStateToProps = (state) => {
const commonProps = matchCommonStateProps(state);
const profile = getProfile(state);
return {
...commonProps,
fullName: profile.get('fullName'),
};
};
export default connect(
matchStateToProps,
null,
)(ViewProfile);