Update LibraryView #9

This commit is contained in:
prayag17 committed 2023-04-04 18:23:52 +05:30
1 parent ee524b57c7
commit 7cba5a39f6
5 files changed
+115 -33

No files matched your search

+9 -1
View File
@@ -6,6 +6,7 @@ export const appBarSlice = createSlice({
initialState: {
visible: false,
backdrop: false,
page: undefined,
},
reducers: {
showAppBar: (state) => {
@@ -17,8 +18,15 @@ export const appBarSlice = createSlice({
setBackdrop: (state, action) => {
state.backdrop = action.payload;
},
setPage: (state, action) => {
state.page = action.payload;
},
removePage: (state) => {
state.page = undefined;
},
},
});
export const { showAppBar, hideAppBar, setBackdrop } = appBarSlice.actions;
export const { showAppBar, hideAppBar, setBackdrop, setPage, removePage } =
appBarSlice.actions;
export default appBarSlice.reducer;