upd: notifikasi
Deskripsi: - update notifikasi push routing ketika di klik No Issues
This commit is contained in:
14
lib/notificationSlice.ts
Normal file
14
lib/notificationSlice.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { createSlice } from '@reduxjs/toolkit';
|
||||
|
||||
const notificationUpdate = createSlice({
|
||||
name: 'notificationUpdate',
|
||||
initialState: false,
|
||||
reducers: {
|
||||
setUpdateNotification: (state, action) => {
|
||||
return action.payload;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { setUpdateNotification } = notificationUpdate.actions;
|
||||
export default notificationUpdate.reducer;
|
||||
Reference in New Issue
Block a user