Common components refactor ()

This commit is contained in:
akinwale 2018-04-05 03:57:29 +01:00 committed by GitHub
commit 6418b5a9f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 7302 additions and 753 deletions
src/redux/selectors

View 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] : {})
);