mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: import resource imporements
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// @ts-nocheck
|
||||
import { DashboardInsider } from '@/components';
|
||||
import { ImportView } from '@/containers/Import/ImportView';
|
||||
import { useHistory, useParams } from 'react-router-dom';
|
||||
|
||||
export default function ImportUncategorizedTransactions() {
|
||||
const history = useHistory();
|
||||
const params = useParams();
|
||||
|
||||
const handleImportSuccess = () => {
|
||||
history.push(
|
||||
`/cashflow-accounts/${params.id}/transactions?filter=uncategorized`,
|
||||
);
|
||||
};
|
||||
const handleCnacelBtnClick = () => {
|
||||
history.push(
|
||||
`/cashflow-accounts/${params.id}/transactions?filter=uncategorized`,
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<DashboardInsider name={'import-uncategorized-bank-transactions'}>
|
||||
<ImportView
|
||||
resource={'uncategorized_cashflow_transaction'}
|
||||
params={{ accountId: params.id }}
|
||||
onImportSuccess={handleImportSuccess}
|
||||
onCancelClick={handleCnacelBtnClick}
|
||||
sampleFileName={'sample_bank_transactions'}
|
||||
/>
|
||||
</DashboardInsider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user