This commit is contained in:
Ahmed Bouhuolia
2025-11-12 21:34:30 +02:00
parent a0bc9db9a6
commit 2383091b6e
29 changed files with 279 additions and 78 deletions

View File

@@ -3,6 +3,7 @@ import { isEqual } from 'lodash';
import { createDeepEqualSelector } from '@/utils';
import { paginationLocationQuery } from '@/store/selectors';
import { defaultTableQuery } from './estimates.reducer';
import { createSelector } from 'reselect';
const estimatesTableState = (state) => state.salesEstimates.tableState;
@@ -23,3 +24,8 @@ export const isEstimatesTableStateChangedFactory = () =>
createDeepEqualSelector(estimatesTableState, (tableState) => {
return !isEqual(tableState, defaultTableQuery);
});
export const getEstimatesSelectedRowsFactory = () => createSelector(
(state) => state.salesEstimates.selectedRows,
(selectedRows) => selectedRows,
);