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

@@ -4,6 +4,7 @@ import { isEqual } from 'lodash';
import { paginationLocationQuery } from '@/store/selectors';
import { createDeepEqualSelector } from '@/utils';
import { defaultTableQuery } from './bills.reducer';
import { createSelector } from 'reselect';
const billsTableStateSelector = (state) => state.bills.tableState;
@@ -24,3 +25,9 @@ export const billsTableStateChangedFactory = () =>
createDeepEqualSelector(billsTableStateSelector, (tableState) => {
return !isEqual(tableState, defaultTableQuery);
});
export const getBillsSelectedRowsFactory = () =>
createSelector(
(state) => state.bills.selectedRows,
(selectedRows) => selectedRows,
);