feat: responsive settings ui

This commit is contained in:
鲁树人 committed 2023-06-10 00:45:41 +01:00
1 parent 1c3b6c45c6
commit 3e203b92ac
6 files changed
+294 -171

No files matched your search

+4 -1
View File
@@ -21,13 +21,16 @@ export const settingsSlice = createSlice({
updateSettings: (_state, { payload }: PayloadAction<SettingsState>) => {
return payload;
},
updateQMC2Keys: (state, { payload }: PayloadAction<QMCSettings['keys']>) => {
state.qmc2.keys = payload;
},
resetConfig: () => {
return initialState;
},
},
});
export const { updateSettings, resetConfig } = settingsSlice.actions;
export const { updateSettings, resetConfig, updateQMC2Keys } = settingsSlice.actions;
export const selectQM2CSettings = (state: RootState) => state.settings.qmc2;