refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-08 22:30:06 +08:00
parent 9f1b115c73
commit c7eae47fb2
11 changed files with 33 additions and 80 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ const uiSlice = createSlice({
setReady(state) {
state.ready = true;
},
updateOnline(state, action) {
updateOnline(state, action: PayloadAction<boolean>) {
state.online = action.payload;
},
toggleMenuExpand(state) {