use makeMapStateToProps

rebase/4.0.0rc2
cwm 2017-12-17 22:00:25 -06:00
parent e4ebbf4f07
commit be50e45a74
1 changed files with 16 additions and 12 deletions

View File

@ -32,6 +32,7 @@ const messages = defineMessages({
misc: { id: 'navigation_bar.misc', defaultMessage: 'Misc' },
});
const makeMapStateToProps = () => {
const getOrderedLists = createSelector([state => state.get('lists')], lists => {
if (!lists) {
return lists;
@ -41,13 +42,16 @@ const getOrderedLists = createSelector([state => state.get('lists')], lists => {
});
const mapStateToProps = state => ({
lists: getOrderedLists(state),
myAccount: state.getIn(['accounts', me]),
columns: state.getIn(['settings', 'columns']),
lists: getOrderedLists(state),
});
@connect(mapStateToProps)
return mapStateToProps;
}
@injectIntl
@connect(makeMapStateToProps)
export default class GettingStarted extends ImmutablePureComponent {
static propTypes = {