refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-08 10:18:23 +08:00
parent be6822e568
commit 678b8515ca
36 changed files with 210 additions and 220 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ const serverSlice = createSlice({
resetServer() {
return initialState;
},
fullfillServer(state, action: PayloadAction<StoredServer>) {
fillServer(state, action: PayloadAction<StoredServer>) {
const {
inviteLink = {
link: "",
@@ -51,5 +51,5 @@ const serverSlice = createSlice({
}
});
export const { updateInfo, resetServer, fullfillServer } = serverSlice.actions;
export const { updateInfo, resetServer, fillServer } = serverSlice.actions;
export default serverSlice.reducer;