mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
26 lines
674 B
TypeScript
26 lines
674 B
TypeScript
// @ts-nocheck
|
|
import { DashboardInsider } from '@/components';
|
|
import { ImportView } from '../Import/ImportView';
|
|
import { useHistory } from 'react-router-dom';
|
|
|
|
export default function CustomersImport() {
|
|
const history = useHistory();
|
|
|
|
const handleImportSuccess = () => {
|
|
history.push('/customers');
|
|
};
|
|
const handleCancelBtnClick = () => {
|
|
history.push('/customers');
|
|
};
|
|
return (
|
|
<DashboardInsider name={'import-customers'}>
|
|
<ImportView
|
|
resource={'customers'}
|
|
onImportSuccess={handleImportSuccess}
|
|
onCancelClick={handleCancelBtnClick}
|
|
exampleTitle="Customers Example"
|
|
/>
|
|
</DashboardInsider>
|
|
);
|
|
}
|