mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
chrone: sperate client and server to different repos.
This commit is contained in:
22
src/containers/Items/ItemFormPage.js
Normal file
22
src/containers/Items/ItemFormPage.js
Normal file
@@ -0,0 +1,22 @@
|
||||
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';
|
||||
|
||||
/**
|
||||
* Item form page.
|
||||
*/
|
||||
export default function ItemFormPage() {
|
||||
const { id } = useParams();
|
||||
const idInteger = parseInt(id, 10);
|
||||
|
||||
return (
|
||||
<ItemFormProvider itemId={idInteger}>
|
||||
<DashboardCard page>
|
||||
<ItemForm />
|
||||
</DashboardCard>
|
||||
</ItemFormProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user