mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix(webapp): Payment made details drawer does not show up
This commit is contained in:
@@ -13,7 +13,6 @@ import {
|
|||||||
|
|
||||||
import PaymentMadesEmptyStatus from './PaymentMadesEmptyStatus';
|
import PaymentMadesEmptyStatus from './PaymentMadesEmptyStatus';
|
||||||
|
|
||||||
import withPaymentMade from './withPaymentMade';
|
|
||||||
import withPaymentMadeActions from './withPaymentMadeActions';
|
import withPaymentMadeActions from './withPaymentMadeActions';
|
||||||
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
import withCurrentOrganization from '@/containers/Organization/withCurrentOrganization';
|
||||||
|
|
||||||
@@ -24,6 +23,7 @@ import withSettings from '@/containers/Settings/withSettings';
|
|||||||
import { usePaymentMadesTableColumns, ActionsMenu } from './components';
|
import { usePaymentMadesTableColumns, ActionsMenu } from './components';
|
||||||
import { usePaymentMadesListContext } from './PaymentMadesListProvider';
|
import { usePaymentMadesListContext } from './PaymentMadesListProvider';
|
||||||
import { useMemorizedColumnsWidths } from '@/hooks';
|
import { useMemorizedColumnsWidths } from '@/hooks';
|
||||||
|
import { DRAWERS } from '@/constants/drawers';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Payment made datatable transactions.
|
* Payment made datatable transactions.
|
||||||
@@ -32,9 +32,6 @@ function PaymentMadesTable({
|
|||||||
// #withPaymentMadeActions
|
// #withPaymentMadeActions
|
||||||
setPaymentMadesTableState,
|
setPaymentMadesTableState,
|
||||||
|
|
||||||
// #withPaymentMade
|
|
||||||
paymentMadesTableState,
|
|
||||||
|
|
||||||
// #withAlerts
|
// #withAlerts
|
||||||
openAlert,
|
openAlert,
|
||||||
|
|
||||||
@@ -71,12 +68,12 @@ function PaymentMadesTable({
|
|||||||
|
|
||||||
// Handle view detail payment made.
|
// Handle view detail payment made.
|
||||||
const handleViewDetailPaymentMade = ({ id }) => {
|
const handleViewDetailPaymentMade = ({ id }) => {
|
||||||
openDrawer('payment-made-detail-drawer', { paymentMadeId: id });
|
openDrawer(DRAWERS.PAYMENT_MADE, { paymentMadeId: id });
|
||||||
};
|
};
|
||||||
|
|
||||||
// Handle cell click.
|
// Handle cell click.
|
||||||
const handleCellClick = (cell, event) => {
|
const handleCellClick = (cell, event) => {
|
||||||
openDrawer('payment-made-detail-drawer', {
|
openDrawer(DRAWERS.PAYMENT_MADE, {
|
||||||
paymentMadeId: cell.row.original.id,
|
paymentMadeId: cell.row.original.id,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -134,7 +131,6 @@ function PaymentMadesTable({
|
|||||||
|
|
||||||
export default compose(
|
export default compose(
|
||||||
withPaymentMadeActions,
|
withPaymentMadeActions,
|
||||||
withPaymentMade(({ paymentMadesTableState }) => ({ paymentMadesTableState })),
|
|
||||||
withAlertsActions,
|
withAlertsActions,
|
||||||
withDrawerActions,
|
withDrawerActions,
|
||||||
withCurrentOrganization(),
|
withCurrentOrganization(),
|
||||||
|
|||||||
Reference in New Issue
Block a user