refactor(ui): refactor reducer list

Instead of manually naming reducers, use each slice's `name` property. Makes typos impossible.
This commit is contained in:
psychedelicious
2024-02-03 20:30:18 +11:00
committed by Kent Keirsey
parent c1300fa8b1
commit d713620d9e
20 changed files with 48 additions and 84 deletions

View File

@ -177,6 +177,4 @@ export const configSlice = createSlice({
export const { configChanged } = configSlice.actions;
export default configSlice.reducer;
export const selectConfigSlice = (state: RootState) => state.config;

View File

@ -194,8 +194,6 @@ export const {
setShouldEnableInformationalPopovers,
} = systemSlice.actions;
export default systemSlice.reducer;
const isAnyServerError = isAnyOf(socketInvocationError, socketSessionRetrievalError, socketInvocationRetrievalError);
export const selectSystemSlice = (state: RootState) => state.system;