mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
wip
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user