Adding a Cartouche for the card component

This commit is contained in:
2025-05-01 19:44:19 +02:00
parent 90aa5e06f2
commit 8d72172e0a
2 changed files with 23 additions and 2 deletions

View File

@@ -8,8 +8,7 @@ import { useForm } from "@refinedev/core";
import { DeleteButton } from "@refinedev/mui";
import { FirmContext } from "../../../contexts/FirmContext";
import { CrudForm } from "../../../lib/crud/components/crud-form";
import Stack from "@mui/material/Stack";
import { DeleteButton } from "@refinedev/mui";
import Cartouche from "../../../components/Cartouche";
type EditProps = {
resource: string,
@@ -41,6 +40,7 @@ const Edit = <T,>(props: EditProps) => {
const record = query.data.data;
return (
<>
<Cartouche record={record}/>
<CrudForm
resourceBasePath={resourceBasePath}
schemaName={schemaName}