arm-core/web/src/store/store.ts
Andrey Epifancev ec12397854 fix(web): синхронизация встроенного фронта с arm-web@test (8345f5e) (#137)
Перенесён диапазон arm-web 46639b1..8345f5e (9 коммитов, 41 файлов набора
синхронизации) скриптом docs/scripts/sync-web.sh. После переноса web/ и
arm-web@test идентичны по набору. Коммиты arm-web:
- 5b13b74 Форматирование под ESLint + Prettier, зелёный make check (#31)
- 681697f fixed eslint bugs
- 25d2211 fixed bugs
- 2cddb55 Форматирование под ESLint + Prettier и зелёный make check (#31)
- 71dae21 updated company group and forms
- 83d4c2b added company group table
- d2dc230 fixed merge bug
- 3977dae added forms for catalogue jur
- 8e8e46e addded legalEntities table and move form

Co-Authored-By: sync-web.sh <noreply@aepif.ru>
2026-10-19 11:35:41 +04:00

19 lines
764 B
TypeScript

import { configureStore } from '@reduxjs/toolkit';
import { useDispatch, useSelector } from 'react-redux';
import catalogueJurReducer from './slices/catalogueJurSlice/catalogueJurSlice';
import comGroupsReducer from './slices/companyGroupsSlice/companyGroupsSlice';
import consolidationsReducer from './slices/consolidations/consolidationsSlice';
export const store = configureStore({
reducer: {
company_groups: comGroupsReducer,
consolidations: consolidationsReducer,
catalogue_jur: catalogueJurReducer,
},
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export const useAppDispatch = useDispatch.withTypes<AppDispatch>();
export const useAppSelector = useSelector.withTypes<RootState>();