diff --git a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/ClientBox/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/ClientBox/index.tsx index 6d9c01f8..2a54b013 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/ClientBox/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/ClientBox/index.tsx @@ -11,16 +11,18 @@ import DeleteCustomerModal from "./DeleteCustomerModal"; import Link from "next/link"; import Module from "@Front/Config/Module"; import { useCallback } from "react"; +import { Note } from "le-coffre-resources/dist/Customer"; type IProps = { customer: ICustomer; anchorStatus: AnchorStatus; folderUid: string | undefined; + customerNote: Note | null; onDelete: (customerUid: string) => void; }; export default function ClientBox(props: IProps) { - const { customer, anchorStatus, folderUid } = props; + const { customer, anchorStatus, folderUid, customerNote } = props; const { isOpen, open, close } = useOpenable(); @@ -68,7 +70,7 @@ export default function ClientBox(props: IProps) { Note client - {customer.notes?.[0]?.content ?? "_"} + {customerNote?.content ?? "-"} diff --git a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx index a511ec8a..cce182f9 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx @@ -85,7 +85,13 @@ export default function ClientView(props: IProps) {
- + value.customer?.uid === customer.uid) ?? null} + /> {anchorStatus === AnchorStatus.NOT_ANCHORED && (