Common components refactor (#1)
This commit is contained in:
parent
8f766fa930
commit
6418b5a9f2
39 changed files with 7302 additions and 753 deletions
src/redux/selectors
8
src/redux/selectors/notifications.js
Normal file
8
src/redux/selectors/notifications.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import { createSelector } from 'reselect';
|
||||
|
||||
export const selectState = state => state.notifications || {};
|
||||
|
||||
export const selectNotification = createSelector(
|
||||
selectState,
|
||||
state => (state.queue.length > 0 ? state.queue[0] : {})
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue