import ValidateAnchoringGif from "@Front/Assets/images/validate_anchoring.gif"; import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; import CheckBox from "@Front/Components/DesignSystem/CheckBox"; import FilePreview from "@Front/Components/DesignSystem/FilePreview"; import InputField from "@Front/Components/DesignSystem/Form/Elements/InputField"; import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; import DefaultNotaryDashboard from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard"; import Image from "next/image"; import React from "react"; import BasePage from "../../Base"; import classes from "./classes.module.scss"; type IProps = {}; type IState = { isRefuseModalVisible: boolean; isValidateModalVisible: boolean; refuseText: string; hasValidateAnchoring: boolean; }; export default class ViewDocuments extends BasePage { public constructor(props: IProps) { super(props); this.state = { isValidateModalVisible: false, isRefuseModalVisible: false, refuseText: "", hasValidateAnchoring: false, }; this.closeModals = this.closeModals.bind(this); this.openValidateModal = this.openValidateModal.bind(this); this.openRefuseModal = this.openRefuseModal.bind(this); this.onRefuseTextChange = this.onRefuseTextChange.bind(this); this.validateAnchoring = this.validateAnchoring.bind(this); } public override render(): JSX.Element { return ( {}} hasBackArrow mobileBackText="Retour aux documents">
App 23 rue Torus Toulon Diagnostic électricité
{!this.state.hasValidateAnchoring && ( Êtes-vous sûr de vouloir ancrer ce document ? )} {this.state.hasValidateAnchoring && (
Le document s'ancre dans la blockchain. Anchoring animation
)}
Veuillez indiquer au client le motif du refus de son document afin qu'il puisse vous renvoyer une bonne version.
); } private validateAnchoring() { this.setState({ hasValidateAnchoring: true, }); } private onRefuseTextChange(e: React.ChangeEvent) { this.setState({ refuseText: e.target.value, }); } private openValidateModal() { this.setState({ isValidateModalVisible: true, }); } private openRefuseModal() { this.setState({ isRefuseModalVisible: true, }); } private closeModals() { this.setState({ isValidateModalVisible: false, isRefuseModalVisible: false, }); } }