From 10f7f081214d268bc0d796214bdf19e6f2f5ebf9 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Thu, 27 Apr 2023 10:46:52 +0200 Subject: [PATCH] :bug: Removing act type choose in ask documents --- .../Layouts/Folder/AskDocuments/index.tsx | 71 ++++++------------- 1 file changed, 22 insertions(+), 49 deletions(-) diff --git a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx index 46ab0cb5..7e93a30b 100644 --- a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx @@ -4,7 +4,7 @@ import CheckBox from "@Front/Components/DesignSystem/CheckBox"; import Form, { IApiFormErrors } from "@Front/Components/DesignSystem/Form"; import InputField from "@Front/Components/DesignSystem/Form/Elements/InputField"; import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; -import Select, { IOption } from "@Front/Components/DesignSystem/Select"; +import { IOption } from "@Front/Components/DesignSystem/Select"; import Typography, { ITypo, ITypoColor } from "@Front/Components/DesignSystem/Typography"; import BackArrow from "@Front/Components/Elements/BackArrow"; import DefaultNotaryDashboard from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard"; @@ -15,19 +15,12 @@ import classes from "./classes.module.scss"; type IProps = {}; type IState = { - actType: IOption | null; isCreateDocumentModalVisible: boolean; documentName: string; visibleDescription: string; }; export default class AskDocuments extends BasePage { - private actsOptions: IOption[] = [ - { label: "Divorce", value: "divorce" }, - { label: "Succession", value: "succession" }, - { label: "Vente immobilière", value: "vente_immobiliere" }, - ]; - private documentsType: IOption[] = [ { label: "Carte d'identité", value: "carte_identite" }, { label: "Diagnostic État Risques et Pollution", value: "diagnostic_erep" }, @@ -46,13 +39,11 @@ export default class AskDocuments extends BasePage { super(props); this.state = { - actType: null, isCreateDocumentModalVisible: false, documentName: "", visibleDescription: "", }; - this.onActTypeChange = this.onActTypeChange.bind(this); this.onFormSubmit = this.onFormSubmit.bind(this); this.closeModal = this.closeModal.bind(this); this.openModal = this.openModal.bind(this); @@ -73,38 +64,27 @@ export default class AskDocuments extends BasePage {
- {!this.state.actType && ( -