Files
bigcapital/client/src/store/inventoryAdjustments/inventoryAdjustment.selector.js
a.bouhuolia 6e10ed0721 refactoring: inventory adjustments list.
refactoring: items categories list.
2021-02-09 13:56:37 +02:00

23 lines
523 B
JavaScript

import { createSelector } from '@reduxjs/toolkit';
import {
paginationLocationQuery,
} from 'store/selectors';
const inventoryAdjustmentTableState = (state) =>
state.inventoryAdjustments.tableState;
/**
* Retrieve the inventory adjustments table state.
*/
export const getInventroyAdjsTableStateFactory = () =>
createSelector(
paginationLocationQuery,
inventoryAdjustmentTableState,
(locationQuery, tableQuery) => {
return {
...locationQuery,
...tableQuery,
};
},
);