From fdd7d2ca79d6bce1bcf85fa624c802e3960477a9 Mon Sep 17 00:00:00 2001 From: Hugo Lextrait Date: Thu, 11 May 2023 17:33:16 +0200 Subject: [PATCH] :art: fix tooltip description --- .../FolderBoxInformation/classes.module.scss | 11 +++-- .../Components/DesignSystem/Select/index.tsx | 1 + .../Layouts/Folder/AskDocuments/index.tsx | 4 +- .../Folder/FolderInformation/index.tsx | 3 +- src/front/Components/Layouts/Folder/index.tsx | 2 +- .../FolderInformation/index.tsx | 3 +- .../Layouts/FolderArchived/index.tsx | 8 +++- .../Components/Layouts/MyAccount/index.tsx | 40 +++++++++++++++---- 8 files changed, 51 insertions(+), 21 deletions(-) diff --git a/src/front/Components/DesignSystem/FolderBoxInformation/classes.module.scss b/src/front/Components/DesignSystem/FolderBoxInformation/classes.module.scss index c22fa8de..37c7ee45 100644 --- a/src/front/Components/DesignSystem/FolderBoxInformation/classes.module.scss +++ b/src/front/Components/DesignSystem/FolderBoxInformation/classes.module.scss @@ -8,6 +8,12 @@ align-items: center; justify-content: space-between; + &.single-information { + .content { + grid-template-columns: 1fr; + } + } + .content { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; @@ -17,7 +23,6 @@ .text-container { display: flex; flex-direction: column; - justify-content: space-between; > :first-child { margin-bottom: 12px; @@ -33,9 +38,7 @@ grid-template-columns: 1fr; } - &.single-information { - grid-template-columns: 1fr; - } + } .edit-icon-container { diff --git a/src/front/Components/DesignSystem/Select/index.tsx b/src/front/Components/DesignSystem/Select/index.tsx index 3ea8698b..de35d518 100644 --- a/src/front/Components/DesignSystem/Select/index.tsx +++ b/src/front/Components/DesignSystem/Select/index.tsx @@ -22,6 +22,7 @@ export type IOption = { value: unknown; label: string; icon?: ReactNode; + description?: string; }; type IState = { diff --git a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx index 9f718dac..c8835c17 100644 --- a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx @@ -1,4 +1,3 @@ - import PlusIcon from "@Assets/Icons/plus.svg"; import Folders from "@Front/Api/LeCoffreApi/SuperAdmin/Folders/Folders"; import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; @@ -71,7 +70,7 @@ class AskDocumentsClass extends BasePage { {this.state.documentTypes.map((documentType) => ( @@ -172,6 +171,7 @@ class AskDocumentsClass extends BasePage { return { label: documentType.document_type!.name!, value: documentType.document_type!.uid!, + description: documentType.document_type!.private_description!, }; }); diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx index 176f61f3..402b8a52 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -1,4 +1,3 @@ - import ChevronIcon from "@Assets/Icons/chevron.svg"; import Folders, { IPutFoldersParams } from "@Front/Api/LeCoffreApi/SuperAdmin/Folders/Folders"; import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; @@ -124,7 +123,7 @@ class FolderInformationClass extends BasePage { Informations du dossier
- Veuillez sélectionner un dossier. + Vous n'avez aucun dossier archivés
diff --git a/src/front/Components/Layouts/Folder/index.tsx b/src/front/Components/Layouts/Folder/index.tsx index 0b012370..ce73a13d 100644 --- a/src/front/Components/Layouts/Folder/index.tsx +++ b/src/front/Components/Layouts/Folder/index.tsx @@ -28,7 +28,7 @@ export default class Folder extends BasePage { Informations du dossier
- Veuillez sélectionner un dossier. + Vous n'avez aucun dossier archivés
diff --git a/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx b/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx index fa34a49d..d17634ae 100644 --- a/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx @@ -1,4 +1,3 @@ - import ChevronIcon from "@Assets/Icons/chevron.svg"; import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; import FolderBoxInformation, { EFolderBoxInformationType } from "@Front/Components/DesignSystem/FolderBoxInformation"; @@ -94,7 +93,7 @@ class FolderInformationClass extends BasePage { Informations du dossier
- Veuillez sélectionner un dossier. + Vous n'avez aucun dossier archivés
diff --git a/src/front/Components/Layouts/FolderArchived/index.tsx b/src/front/Components/Layouts/FolderArchived/index.tsx index 93afb625..f411b087 100644 --- a/src/front/Components/Layouts/FolderArchived/index.tsx +++ b/src/front/Components/Layouts/FolderArchived/index.tsx @@ -21,13 +21,17 @@ export default class Folder extends BasePage { // TODO: Message if the user has not created any folder yet public override render(): JSX.Element { return ( - +
Informations du dossier
- Veuillez sélectionner un dossier. + Vous n'avez aucun dossier archivés
diff --git a/src/front/Components/Layouts/MyAccount/index.tsx b/src/front/Components/Layouts/MyAccount/index.tsx index 4f892401..11fbb369 100644 --- a/src/front/Components/Layouts/MyAccount/index.tsx +++ b/src/front/Components/Layouts/MyAccount/index.tsx @@ -25,10 +25,22 @@ export default class MyAccount extends Base {
- - - - + + + +
@@ -42,12 +54,24 @@ export default class MyAccount extends Base { name="office_denomination" fakeplaceholder="Dénomination de l'office" type="text" - defaultValue="AP NOTAIRES" + defaultValue="Etude Office notarial du Cormier" + disabled + /> + + + - - -