mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat: tables empty status.
This commit is contained in:
@@ -4,11 +4,14 @@ import {
|
||||
getPaymentReceiveCurrentPageFactory,
|
||||
getPaymentReceivePaginationMetaFactory,
|
||||
getPaymentReceiveTableQuery,
|
||||
getPaymentReceivesCurrentViewIdFactory,
|
||||
} from 'store/PaymentReceive/paymentReceive.selector';
|
||||
|
||||
export default (mapState) => {
|
||||
const getPyamentReceivesItems = getPaymentReceiveCurrentPageFactory();
|
||||
const getPyamentReceivesPaginationMeta = getPaymentReceivePaginationMetaFactory();
|
||||
const getPaymentReceivesCurrentViewId = getPaymentReceivesCurrentViewIdFactory();
|
||||
|
||||
const mapStateToProps = (state, props) => {
|
||||
const query = getPaymentReceiveTableQuery(state, props);
|
||||
const mapped = {
|
||||
@@ -23,6 +26,7 @@ export default (mapState) => {
|
||||
),
|
||||
paymentReceivesLoading: state.paymentReceives.loading,
|
||||
paymentReceiveNumberChanged: state.paymentReceives.journalNumberChanged,
|
||||
paymentReceivesCurrentViewId: getPaymentReceivesCurrentViewId(state, props),
|
||||
};
|
||||
return mapState ? mapState(mapped, state, props) : mapped;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user