From c868b8cd23a538e34b9e4bce449d74589b1c993a Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Wed, 24 Jul 2024 17:01:46 +0200 Subject: [PATCH] :sparkles: warning on tabs --- .../Layouts/Folder/FolderInformation/ClientView/index.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx index cce182f9..264db94d 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/ClientView/index.tsx @@ -14,6 +14,7 @@ import Link from "next/link"; import NoDocument from "./NoDocument"; import DocumentTables from "./DocumentTables"; import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; +import { EDocumentStatus } from "le-coffre-resources/dist/Customer/Document"; type IProps = { folder: OfficeFolder; @@ -42,6 +43,9 @@ export default function ClientView(props: IProps) { label: `${customer.contact?.first_name} ${customer.contact?.last_name}`, key: customer.uid, value: customer, + hasWarning: + customer.documents && + customer.documents.filter((document) => document.document_status === EDocumentStatus.DEPOSITED).length > 0, })), [customers], );