mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: quick create action on select/suggest items fields.
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
import React from 'react';
|
||||
import { useParams } from 'react-router-dom';
|
||||
|
||||
import { ItemFormProvider } from './ItemFormProvider';
|
||||
import DashboardCard from 'components/Dashboard/DashboardCard';
|
||||
import ItemForm from 'containers/Items/ItemForm';
|
||||
import ItemForm from './ItemForm';
|
||||
|
||||
/**
|
||||
* Item form page.
|
||||
@@ -12,11 +10,5 @@ export default function ItemFormPage() {
|
||||
const { id } = useParams();
|
||||
const idInteger = parseInt(id, 10);
|
||||
|
||||
return (
|
||||
<ItemFormProvider itemId={idInteger}>
|
||||
<DashboardCard page>
|
||||
<ItemForm />
|
||||
</DashboardCard>
|
||||
</ItemFormProvider>
|
||||
);
|
||||
}
|
||||
return <ItemForm itemId={idInteger} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user