- The fix is in! Linty fresh and pretty...
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { getProfile } from '../../selectors/profile.js';
|
||||
import { commonProfileStateToProps } from './Profile.container.js';
|
||||
import { isRegisteredAccount } from '../../selectors/profile.js';
|
||||
|
||||
import ViewProfile from './ViewProfile.js';
|
||||
|
||||
const matchStateToProps = (dispatch) => {
|
||||
const matchStateToProps = (state) => {
|
||||
const commonProps = commonProfileStateToProps(state);
|
||||
const profile = getProfile(state);
|
||||
|
||||
return {
|
||||
...commonProps,
|
||||
fullName: profile.get('fullName'),
|
||||
generatedNomDeBid: propfile.get('generatedNomDeBid'),
|
||||
isRegisteredAccount: isRegisteredAccount(state),
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(matchStateToProps, null)(ViewProfile);
|
||||
export default connect(
|
||||
matchStateToProps,
|
||||
null,
|
||||
)(ViewProfile);
|
||||
|
||||
Reference in New Issue
Block a user