mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
51 lines
1.3 KiB
JavaScript
51 lines
1.3 KiB
JavaScript
import React from 'react';
|
|
import { Tabs, Tab } from '@blueprintjs/core';
|
|
import { FormattedMessage as T } from 'components';
|
|
import intl from 'react-intl-universal';
|
|
import classNames from 'classnames';
|
|
import { CLASSES } from 'common/classes';
|
|
|
|
import VendorFinanicalPanelTab from './VendorFinanicalPanelTab';
|
|
import VendorAttahmentTab from './VendorAttahmentTab';
|
|
|
|
import CustomerAddressTabs from 'containers/Customers/CustomerForm/CustomerAddressTabs';
|
|
import CustomerNotePanel from 'containers/Customers/CustomerForm/CustomerNotePanel';
|
|
|
|
/**
|
|
* Vendor form tabs.
|
|
*/
|
|
export default function VendorTabs() {
|
|
|
|
return (
|
|
<div className={classNames(CLASSES.PAGE_FORM_TABS)}>
|
|
<Tabs
|
|
animate={true}
|
|
id={'vendor-tabs'}
|
|
large={true}
|
|
defaultSelectedTabId="financial"
|
|
>
|
|
<Tab
|
|
id={'financial'}
|
|
title={intl.get('financial_details')}
|
|
panel={<VendorFinanicalPanelTab />}
|
|
/>
|
|
<Tab
|
|
id={'address'}
|
|
title={intl.get('address')}
|
|
panel={<CustomerAddressTabs />}
|
|
/>
|
|
<Tab
|
|
id="notes"
|
|
title={intl.get('notes')}
|
|
panel={<CustomerNotePanel />}
|
|
/>
|
|
<Tab
|
|
id={'attachement'}
|
|
title={intl.get('attachement')}
|
|
panel={<VendorAttahmentTab />}
|
|
/>
|
|
</Tabs>
|
|
</div>
|
|
);
|
|
}
|