refactor: setting page

This commit is contained in:
zerosoul
2022-04-15 13:18:03 +08:00
parent eb8717da8e
commit 19a4861819
9 changed files with 56 additions and 63 deletions
+1 -10
View File
@@ -32,16 +32,7 @@ const serverSlice = createSlice({
state[_key] = values[_key];
});
},
updateInviteLink(state, action) {
const { link, expire = 7 * 24 * 60 * 60 } = action.payload;
state.inviteLink = { link, expire };
},
},
});
export const {
updateInfo,
resetServer,
fullfillServer,
updateInviteLink,
} = serverSlice.actions;
export const { updateInfo, resetServer, fullfillServer } = serverSlice.actions;
export default serverSlice.reducer;