From 6df9cd7d073f8efb42aecf7a0d9413449cf1f363 Mon Sep 17 00:00:00 2001 From: OxSaitama Date: Wed, 8 Nov 2023 10:19:23 +0100 Subject: [PATCH] add verified folder error handling --- .../DepositOtherDocument/index.tsx | 41 +++++++++++++------ 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/src/front/Components/DesignSystem/DepositOtherDocument/index.tsx b/src/front/Components/DesignSystem/DepositOtherDocument/index.tsx index 467be008..e6bb4ed9 100644 --- a/src/front/Components/DesignSystem/DepositOtherDocument/index.tsx +++ b/src/front/Components/DesignSystem/DepositOtherDocument/index.tsx @@ -40,6 +40,7 @@ type IState = { refusedReason?: string; isShowRefusedReasonModalVisible: boolean; showFailedUploaded: string | null; + showFailedDocument: string | null; isAddDocumentModalVisible: boolean; isLoading: boolean; }; @@ -159,11 +160,20 @@ export default class DepositOtherDocument extends React.Component - {this.state.showFailedUploaded && ( + {this.state.showFailedDocument && ( + header={"L'ajout de Document n'est plus autorisé"} + isOpen={!!this.state.showFailedDocument}> +
+ + {this.state.showFailedDocument} + +
+
+ )} + {this.state.showFailedUploaded && ( +
{this.state.showFailedUploaded} @@ -180,7 +190,7 @@ export default class DepositOtherDocument extends React.Component