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

@ -719,8 +719,6 @@ export const {
scaledBoundingBoxDimensionsReset,
} = canvasSlice.actions;
export default canvasSlice.reducer;
export const selectCanvasSlice = (state: RootState) => state.canvas;
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */