mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
WIP feature/Customers
This commit is contained in:
41
client/src/containers/Customers/CustomersTabs.js
Normal file
41
client/src/containers/Customers/CustomersTabs.js
Normal file
@@ -0,0 +1,41 @@
|
||||
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 CustomerNotTabs from './CustomerNotTabs';
|
||||
import CustomerAttachmentTabs from './CustomerAttachmentTabs';
|
||||
|
||||
function CustomersTabs({ formik }) {
|
||||
const [animate, setAnimate] = useState(true);
|
||||
const { formatMessage } = useIntl();
|
||||
const handleChangeTabs = useCallback(() => {}, []);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<Tabs animate={animate} id={'customer-tabs'} large={true}>
|
||||
<Tab
|
||||
id={'other'}
|
||||
title={formatMessage({ id: 'other' })}
|
||||
panel={'Other'}
|
||||
/>
|
||||
<Tab
|
||||
id={'address'}
|
||||
title={formatMessage({ id: 'address' })}
|
||||
panel={<CustomerAddressTabs formik={formik} />}
|
||||
/>
|
||||
<Tab
|
||||
id={'attachement'}
|
||||
title={formatMessage({ id: 'attachement' })}
|
||||
panel={<CustomerAttachmentTabs />}
|
||||
/>
|
||||
<Tab
|
||||
id={'note'}
|
||||
title={formatMessage({ id: 'note' })}
|
||||
panel={<CustomerNotTabs formik={formik} />}
|
||||
/>
|
||||
</Tabs>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default CustomersTabs;
|
||||
Reference in New Issue
Block a user