This commit is contained in:
2019-08-05 21:23:17 -04:00
parent a9f4324f29
commit 1e464de7e8
42 changed files with 837 additions and 165 deletions

24
app/selectors/profile.js Normal file
View File

@@ -0,0 +1,24 @@
import { Map } from 'immutable';
import { createSelector } from 'reselect';
const getState = (state) => state;
export const getProfile = createSelector(
[getState],
(state) => state.get('profile'),
);
export const getNomDeBid = createSelector(
[getProfile],
(profile) => profile.get('nomDeBid'),
);
export const getProfileAvatarUrl = createSelector(
[getProfile],
(profile) => profile.get('avatar'),
);
export const isAllowedToBid = createSelector(
[getProfile],
(profile) => profile.get('isAllowedToBid'),
);