mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: style read-only drawers.
fix: empty state in resources tables.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { isEqual } from 'lodash';
|
||||
|
||||
import { paginationLocationQuery } from 'store/selectors';
|
||||
import { createDeepEqualSelector } from 'utils';
|
||||
import { defaultTableQuery } from './items.reducer';
|
||||
|
||||
const itemsTableStateSelector = (state) => state.items.tableState;
|
||||
|
||||
@@ -15,3 +18,8 @@ export const getItemsTableStateFactory = () =>
|
||||
};
|
||||
},
|
||||
);
|
||||
|
||||
export const isItemsTableStateChangedFactory = () =>
|
||||
createDeepEqualSelector(itemsTableStateSelector, (tableState) => {
|
||||
return !isEqual(tableState, defaultTableQuery);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user