-More!
This commit is contained in:
24
app/selectors/profile.js
Normal file
24
app/selectors/profile.js
Normal 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'),
|
||||
);
|
||||
Reference in New Issue
Block a user