mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
23 lines
523 B
JavaScript
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,
|
|
};
|
|
},
|
|
);
|