✨ warning on tabs
This commit is contained in:
parent
635bd45b43
commit
c868b8cd23
@ -14,6 +14,7 @@ import Link from "next/link";
|
|||||||
import NoDocument from "./NoDocument";
|
import NoDocument from "./NoDocument";
|
||||||
import DocumentTables from "./DocumentTables";
|
import DocumentTables from "./DocumentTables";
|
||||||
import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders";
|
import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders";
|
||||||
|
import { EDocumentStatus } from "le-coffre-resources/dist/Customer/Document";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
folder: OfficeFolder;
|
folder: OfficeFolder;
|
||||||
@ -42,6 +43,9 @@ export default function ClientView(props: IProps) {
|
|||||||
label: `${customer.contact?.first_name} ${customer.contact?.last_name}`,
|
label: `${customer.contact?.first_name} ${customer.contact?.last_name}`,
|
||||||
key: customer.uid,
|
key: customer.uid,
|
||||||
value: customer,
|
value: customer,
|
||||||
|
hasWarning:
|
||||||
|
customer.documents &&
|
||||||
|
customer.documents.filter((document) => document.document_status === EDocumentStatus.DEPOSITED).length > 0,
|
||||||
})),
|
})),
|
||||||
[customers],
|
[customers],
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user