mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 15:20:34 +00:00
feat: linking relation with id in importing
This commit is contained in:
25
packages/webapp/src/containers/Items/ItemsImportPage.tsx
Normal file
25
packages/webapp/src/containers/Items/ItemsImportPage.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
// @ts-nocheck
|
||||
import { DashboardInsider } from '@/components';
|
||||
import { ImportView } from '../Import/ImportView';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
|
||||
export default function ItemsImportpage() {
|
||||
const history = useHistory();
|
||||
|
||||
const handleImportSuccess = () => {
|
||||
history.push('/items');
|
||||
};
|
||||
const handleCancelBtnClick = () => {
|
||||
history.push('/items');
|
||||
};
|
||||
return (
|
||||
<DashboardInsider name={'import-items'}>
|
||||
<ImportView
|
||||
resource={'items'}
|
||||
onImportSuccess={handleImportSuccess}
|
||||
onCancelClick={handleCancelBtnClick}
|
||||
exampleTitle="Items Example"
|
||||
/>
|
||||
</DashboardInsider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user