feat: lots updates

This commit is contained in:
zerosoul
2022-01-30 21:30:12 +08:00
parent e18c7323a6
commit ceb02d834f
38 changed files with 1943 additions and 1832 deletions
+16
View File
@@ -0,0 +1,16 @@
import { createSlice } from "@reduxjs/toolkit";
const initialState = {
menuExpand: true,
};
const uiSlice = createSlice({
name: "ui",
initialState,
reducers: {
toggleMenuExpand(state) {
state.menuExpand = !state.menuExpand;
},
},
});
export const { toggleMenuExpand } = uiSlice.actions;
export default uiSlice.reducer;