blob: 4fc196ca914fb93088660649c0af6442a4530c79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import {createSlice} from '@reduxjs/toolkit';
import {NO_NOTIFICATIONS} from '../initialStates';
const userNotificationsSlice = createSlice({
name: 'userNotifications',
initialState: NO_NOTIFICATIONS,
reducers: {
userNotificationsFetched: (state, action) => {
state.notifications = action.payload;
},
},
});
export const {userNotificationsFetched} = userNotificationsSlice.actions;
export const userNotificationsReducer = userNotificationsSlice.reducer;
|