diff --git a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx index 94a0545c..e113b581 100644 --- a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx @@ -1,4 +1,5 @@ import "reflect-metadata"; + import LeftArrowIcon from "@Assets/Icons/left-arrow.svg"; import RightArrowIcon from "@Assets/Icons/right-arrow.svg"; import ValidateAnchoringGif from "@Front/Assets/images/validate_anchoring.gif"; @@ -18,7 +19,6 @@ import React from "react"; import BasePage from "../../Base"; import classes from "./classes.module.scss"; - type IProps = {}; type IPropsClass = { documentsList: Document[]; @@ -74,7 +74,10 @@ class ViewDocumentsClass extends BasePage {
{this.props.documentsList.length > 1 && ( -
+
left arrow
)} @@ -84,7 +87,10 @@ class ViewDocumentsClass extends BasePage { ))}
{this.props.documentsList.length > 1 && ( -
+
right arrow
)} @@ -202,6 +208,19 @@ class ViewDocumentsClass extends BasePage { this.setState({ hasValidateAnchoring: true, }); + + const timeoutDelay = 9800; + setTimeout(() => { + this.setState({ + isValidateModalVisible: false, + }); + }, timeoutDelay); + + setTimeout(() => { + this.setState({ + hasValidateAnchoring: false, + }); + }, timeoutDelay + 1000); } private onRefuseTextChange(e: React.ChangeEvent) {