mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 23:30:32 +00:00
Fix: Edit Customer.
This commit is contained in:
@@ -250,7 +250,7 @@ function CustomerForm({
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className={classNames(CLASSES.PAGE_FORM_TABS)}>
|
<div className={classNames(CLASSES.PAGE_FORM_TABS)}>
|
||||||
<CustomersTabs customerId={customerId} />
|
<CustomersTabs customer={customerId} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<CustomerFloatingActions
|
<CustomerFloatingActions
|
||||||
|
|||||||
@@ -6,14 +6,7 @@ import CustomerAttachmentTabs from './CustomerAttachmentTabs';
|
|||||||
import CustomerFinancialPanel from './CustomerFinancialPanel';
|
import CustomerFinancialPanel from './CustomerFinancialPanel';
|
||||||
import CustomerNotePanel from './CustomerNotePanel';
|
import CustomerNotePanel from './CustomerNotePanel';
|
||||||
|
|
||||||
export default function CustomersTabs({
|
export default function CustomersTabs({ customer }) {
|
||||||
setFieldValue,
|
|
||||||
getFieldProps,
|
|
||||||
errors,
|
|
||||||
values,
|
|
||||||
touched,
|
|
||||||
customerId,
|
|
||||||
}) {
|
|
||||||
const { formatMessage } = useIntl();
|
const { formatMessage } = useIntl();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -27,7 +20,7 @@ export default function CustomersTabs({
|
|||||||
<Tab
|
<Tab
|
||||||
id={'financial'}
|
id={'financial'}
|
||||||
title={formatMessage({ id: 'financial_details' })}
|
title={formatMessage({ id: 'financial_details' })}
|
||||||
panel={<CustomerFinancialPanel />}
|
panel={<CustomerFinancialPanel customerId={customer} />}
|
||||||
/>
|
/>
|
||||||
<Tab
|
<Tab
|
||||||
id={'address'}
|
id={'address'}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { connect } from 'react-redux';
|
|||||||
import { getCustomerById } from 'store/customers/customers.reducer';
|
import { getCustomerById } from 'store/customers/customers.reducer';
|
||||||
|
|
||||||
const mapStateToProps = (state, props) => ({
|
const mapStateToProps = (state, props) => ({
|
||||||
customerDetail: getCustomerById(state, props.customerId),
|
customer: getCustomerById(state, props.customerId),
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(mapStateToProps);
|
export default connect(mapStateToProps);
|
||||||
|
|||||||
Reference in New Issue
Block a user