WIP: Adding entity crud to front
This commit is contained in:
22
gui/rpk-gui/src/pages/firm/base-page/New.tsx
Normal file
22
gui/rpk-gui/src/pages/firm/base-page/New.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import { CrudForm } from "../../../lib/crud/components/crud-form";
|
||||
import { UiSchema } from "@rjsf/utils";
|
||||
|
||||
type NewProps = {
|
||||
resource: string,
|
||||
schemaName: string,
|
||||
uiSchema?: UiSchema,
|
||||
}
|
||||
|
||||
const New = (props: NewProps) => {
|
||||
const { schemaName, resource, uiSchema } = props;
|
||||
|
||||
return (
|
||||
<CrudForm
|
||||
schemaName={schemaName}
|
||||
uiSchema={uiSchema}
|
||||
resource={resource}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default New;
|
||||
Reference in New Issue
Block a user