From 848edfa12c29cdf9e9d073209d9a0491813e8da2 Mon Sep 17 00:00:00 2001 From: Max S Date: Fri, 19 Jul 2024 10:25:01 +0200 Subject: [PATCH] refacto icon buttons component --- src/front/Components/DesignSystem/UserFolder/index.tsx | 2 +- src/front/Components/Elements/BackArrow/index.tsx | 6 ++---- .../DefaultCollaboratorDashboard/index.tsx | 5 ++--- .../LayoutTemplates/DefaultDeedTypeDashboard/index.tsx | 5 ++--- .../DefaultDocumentTypesDashboard/index.tsx | 5 ++--- .../LayoutTemplates/DefaultNotaryDashboard/index.tsx | 5 ++--- .../LayoutTemplates/DefaultOfficeDashboard/index.tsx | 6 +++--- .../LayoutTemplates/DefaultRoleDashboard/index.tsx | 6 +++--- .../LayoutTemplates/DefaultUserDashboard/index.tsx | 5 ++--- .../Collaborators/CollaboratorInformations/index.tsx | 9 ++------- .../Components/Layouts/Folder/AskDocuments/index.tsx | 6 ++---- .../Folder/FolderInformation/ClientSection/index.tsx | 4 ++-- .../Layouts/Folder/FolderInformation/index.tsx | 2 +- .../Layouts/FolderArchived/FolderInformation/index.tsx | 5 ++++- src/front/Components/Layouts/Login/index.tsx | 2 +- .../Layouts/Subscription/SubscriptionInvite/index.tsx | 2 +- 16 files changed, 32 insertions(+), 43 deletions(-) diff --git a/src/front/Components/DesignSystem/UserFolder/index.tsx b/src/front/Components/DesignSystem/UserFolder/index.tsx index d1371e4a..56ac5055 100644 --- a/src/front/Components/DesignSystem/UserFolder/index.tsx +++ b/src/front/Components/DesignSystem/UserFolder/index.tsx @@ -138,7 +138,7 @@ export default class UserFolder extends React.Component { {!this.props.isArchived && this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
- diff --git a/src/front/Components/Elements/BackArrow/index.tsx b/src/front/Components/Elements/BackArrow/index.tsx index d075a098..a5e892ec 100644 --- a/src/front/Components/Elements/BackArrow/index.tsx +++ b/src/front/Components/Elements/BackArrow/index.tsx @@ -1,4 +1,4 @@ -import ChevronIcon from "@Assets/Icons/chevron.svg"; +import { ChevronDownIcon } from "@heroicons/react/20/solid"; import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import { NextRouter, useRouter } from "next/router"; import React from "react"; @@ -21,9 +21,7 @@ class BackArrowClass extends React.Component { public override render(): JSX.Element { return ( diff --git a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx index 1261b148..b477af69 100644 --- a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx @@ -1,4 +1,4 @@ -import PlusIcon from "@Assets/Icons/plus.svg"; +import { PlusIcon } from "@heroicons/react/24/outline"; import Documents from "@Front/Api/LeCoffreApi/Notary/Documents/Documents"; import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; @@ -75,9 +75,7 @@ class AskDocumentsClass extends BasePage {
@@ -56,7 +56,7 @@ export default class ClientSection extends React.Component {
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && ( - diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx index d681a3a1..26ff7502 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -96,7 +96,7 @@ class FolderInformationClass extends BasePage { Informations du dossier - diff --git a/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx b/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx index 216d4f0f..34cf5284 100644 --- a/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx @@ -66,7 +66,10 @@ class FolderInformationClass extends BasePage { Informations du dossier - diff --git a/src/front/Components/Layouts/Login/index.tsx b/src/front/Components/Layouts/Login/index.tsx index a9083683..dfc30001 100644 --- a/src/front/Components/Layouts/Login/index.tsx +++ b/src/front/Components/Layouts/Login/index.tsx @@ -58,7 +58,7 @@ export default function Login() {
Connexion espace professionnel
- diff --git a/src/front/Components/Layouts/Subscription/SubscriptionInvite/index.tsx b/src/front/Components/Layouts/Subscription/SubscriptionInvite/index.tsx index a780136d..a8187883 100644 --- a/src/front/Components/Layouts/Subscription/SubscriptionInvite/index.tsx +++ b/src/front/Components/Layouts/Subscription/SubscriptionInvite/index.tsx @@ -112,7 +112,7 @@ export default function SubscriptionInvite() { onClick={addLine} variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} - icon={PlusIcon}> + rightIcon={}> Ajouter une adresse email