Remove few bugs

This commit is contained in:
prayag17 committed 2023-04-26 16:51:47 +05:30
1 parent ccb2a628cf
commit a08c51a00c
10 files changed
+117 -171

No files matched your search

-28
View File
@@ -1,28 +0,0 @@
/** @format */
import { createSlice } from "@reduxjs/toolkit";
export const appBarSlice = createSlice({
name: "appBar",
initialState: {
visible: false,
backButtonVisible: false,
},
reducers: {
showAppBar: (state) => {
state.visible = true;
},
hideAppBar: (state) => {
state.visible = false;
},
showBackButton: (state, action) => {
state.backButtonVisible = true;
},
hideBackButton: (state) => {
state.backButtonVisible = false;
},
},
});
export const { showAppBar, hideAppBar, showBackButton, hideBackButton } =
appBarSlice.actions;
export default appBarSlice.reducer;