use makeMapStateToProps

th-downstream
cwm 7 years ago
parent d6ca0e29a7
commit 1dd4e3791f

@ -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 = {

Loading…
Cancel
Save