mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
44 lines
1.3 KiB
JavaScript
44 lines
1.3 KiB
JavaScript
import React, { useState, useCallback } from 'react';
|
|
import { Tabs, Tab } from '@blueprintjs/core';
|
|
import { FormattedMessage as T, useIntl } from 'react-intl';
|
|
import CustomerAddressTabs from './CustomerAddressTabs';
|
|
import CustomerAttachmentTabs from './CustomerAttachmentTabs';
|
|
import CustomerFinancialPanel from './CustomerFinancialPanel';
|
|
import CustomerNotePanel from './CustomerNotePanel';
|
|
|
|
export default function CustomersTabs({ customer }) {
|
|
const { formatMessage } = useIntl();
|
|
|
|
return (
|
|
<div>
|
|
<Tabs
|
|
animate={true}
|
|
id={'customer-tabs'}
|
|
large={true}
|
|
defaultSelectedTabId="financial"
|
|
>
|
|
<Tab
|
|
id={'financial'}
|
|
title={formatMessage({ id: 'financial_details' })}
|
|
panel={<CustomerFinancialPanel customerId={customer} />}
|
|
/>
|
|
<Tab
|
|
id={'address'}
|
|
title={formatMessage({ id: 'address' })}
|
|
panel={<CustomerAddressTabs />}
|
|
/>
|
|
<Tab
|
|
id="notes"
|
|
title={formatMessage({ id: 'notes' })}
|
|
panel={<CustomerNotePanel />}
|
|
/>
|
|
<Tab
|
|
id={'attachement'}
|
|
title={formatMessage({ id: 'attachement' })}
|
|
panel={<CustomerAttachmentTabs />}
|
|
/>
|
|
</Tabs>
|
|
</div>
|
|
);
|
|
}
|