Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const notificationsReducer = (state = initialState, action: AnyAction): Record<string, NotificationData[]> => {
- switch (action.type) {
- case GET_NOTIFICATIONS_SUCCESS:
- return {
- ...state,
- ...action.payload,
- };
- default:
- return state;
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement