Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. export const notificationsReducer = (state = initialState, action: AnyAction): Record<string, NotificationData[]> => {
  2. switch (action.type) {
  3. case GET_NOTIFICATIONS_SUCCESS:
  4. return {
  5. ...state,
  6. ...action.payload,
  7. };
  8. default:
  9. return state;
  10. }
  11. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement