Make drawer bar responsive to onboarding status

This commit is contained in:
Keannu Christian Bernasol 2023-07-06 21:18:57 +08:00
parent b30bbb62df
commit c4e34e7496
4 changed files with 46 additions and 7 deletions

View file

@ -13,16 +13,17 @@ export const StatusSlice = createSlice({
logout: (state) => {
state.logged_in = false;
},
onboard: (state) => {
setOnboarding: (state) => {
state.onboarding = true;
},
not_onboard: (state) => {
unsetOnboarding: (state) => {
state.onboarding = false;
},
},
});
// Action creators are generated for each case reducer function
export const { login, logout, onboard, not_onboard } = StatusSlice.actions;
export const { login, logout, setOnboarding, unsetOnboarding } =
StatusSlice.actions;
export default StatusSlice.reducer;