mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-05-17 03:48:06 +08:00
Make drawer bar responsive to onboarding status
This commit is contained in:
parent
b30bbb62df
commit
c4e34e7496
4 changed files with 46 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue