diff --git a/apps/admin/src/components/admin/Admin/Admin.tsx b/apps/admin/src/components/admin/Admin/Admin.tsx index b8cc2f11..e492ce3f 100644 --- a/apps/admin/src/components/admin/Admin/Admin.tsx +++ b/apps/admin/src/components/admin/Admin/Admin.tsx @@ -2,6 +2,7 @@ import fakeDataProvider from 'ra-data-fakerest' import { Admin as ReactAdmin, Resource } from 'react-admin' // import { dataProvider } from '../../dataProvider' +import { CategoryCreate } from '../../category/CategoryCreate/CategoryCreate' import { CategoryEdit } from '../../category/CategoryEdit' import { CategoryList } from '../../category/CategoryList' import { FormCreate } from '../../form/FormCreate' @@ -69,6 +70,12 @@ export const Admin = () => ( create={} options={{ label: 'Vragenlijsten' }} /> - } edit={} options={{ label: 'Categorieën' }} /> + } + edit={} + create={} + options={{ label: 'Categorieën' }} + /> ) diff --git a/apps/admin/src/components/category/CategoryCreate/CategoryCreate.tsx b/apps/admin/src/components/category/CategoryCreate/CategoryCreate.tsx new file mode 100644 index 00000000..d39e4acc --- /dev/null +++ b/apps/admin/src/components/category/CategoryCreate/CategoryCreate.tsx @@ -0,0 +1,17 @@ +import { Create, SaveButton, SimpleForm, TextInput, Toolbar, ToolbarClasses } from 'react-admin' + +export const CategoryCreate = () => ( + + +
+ +
+ + } + > + +
+
+) diff --git a/apps/admin/src/components/category/CategoryEdit/CategoryEdit.tsx b/apps/admin/src/components/category/CategoryEdit/CategoryEdit.tsx index cc9617f8..78ba4301 100644 --- a/apps/admin/src/components/category/CategoryEdit/CategoryEdit.tsx +++ b/apps/admin/src/components/category/CategoryEdit/CategoryEdit.tsx @@ -1,8 +1,17 @@ -import { Edit, SimpleForm, TextInput } from 'react-admin' +import { DeleteButton, Edit, SaveButton, SimpleForm, TextInput, Toolbar, ToolbarClasses } from 'react-admin' export const CategoryEdit = () => ( - + +
+ + +
+ + } + >