- The fix is in! Linty fresh and pretty...

This commit is contained in:
Mike Fitzpatrick
2019-08-08 16:18:08 -04:00
parent dfc4daf696
commit ebb6f47455
52 changed files with 453 additions and 259 deletions

View File

@@ -1,3 +1,4 @@
import { Map } from 'immutable';
import { createSelector } from 'reselect';
const getState = (state) => state;
@@ -16,7 +17,7 @@ export const getAuctionStatus = (state, itemId) => state.getIn(['actions', itemI
export const getAuctionStatuses = createSelector(
[getState],
(state) => state.get('actions') || new Map(),
(state) => state.get('autions') || new Map(),
);
export const getItemsIdsWithNoBids = createSelector(

View File

@@ -18,7 +18,27 @@ export const getProfileAvatarUrl = createSelector(
(profile) => profile.get('avatar'),
);
export const getUserId = createSelector(
[getProfile],
(profile) => profile.get('id'),
);
export const getUserInitials = createSelector(
[getProfile],
(profile) => profile.get('initials'),
);
export const isAllowedToBid = createSelector(
[getProfile],
(profile) => profile.get('isAllowedToBid'),
);
export const isGeneratedNomDeBid = createSelector(
[getProfile],
(profile) => profile.get('generatedNomDeBid'),
);
export const isRegisteredAccount = createSelector(
[getProfile],
(profile) => profile.get('isRegisteredAccount'),
);