From 9a490c8029e19096c8ce3107cd3d6de1d51bb505 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Fri, 19 Jul 2024 12:44:30 +0200 Subject: [PATCH] :sparkles: beginning create folder --- .../DesignSystem/Button/classes.module.scss | 34 +- .../Components/DesignSystem/Button/index.tsx | 8 +- .../DesignSystem/DepositDocument/index.tsx | 6 +- .../DepositOtherDocument/index.tsx | 4 +- .../DesignSystem/DepositRib/index.tsx | 4 +- .../Components/DesignSystem/Modal/index.tsx | 8 +- .../DesignSystem/OldModal/Confirm/index.tsx | 6 +- .../DesignSystem/UserFolder/index.tsx | 4 +- .../Components/Elements/BackArrow/index.tsx | 4 +- .../DefaultCollaboratorDashboard/index.tsx | 4 +- .../DefaultDeedTypeDashboard/index.tsx | 4 +- .../DefaultDocumentTypesDashboard/index.tsx | 4 +- .../DefaultNotaryDashboard/index.tsx | 4 +- .../DefaultOfficeDashboard/index.tsx | 6 +- .../DefaultRoleDashboard/index.tsx | 4 +- .../DefaultUserDashboard/index.tsx | 4 +- .../Layouts/ClientDashboard/index.tsx | 4 +- .../Layouts/ClientDashboard/index2.tsx | 4 +- .../CollaboratorInformations/index.tsx | 4 +- .../DeedTypes/DeedTypesCreate/index.tsx | 4 +- .../Layouts/DeedTypes/DeedTypesEdit/index.tsx | 4 +- .../DeedTypes/DeedTypesInformations/index.tsx | 6 +- .../Components/Layouts/DesignSystem/index.tsx | 30 +- .../DocumentTypesCreate/index.tsx | 4 +- .../DocumentTypes/DocumentTypesEdit/index.tsx | 4 +- .../DocumentTypesInformations/index.tsx | 4 +- .../Folder/AddClientToFolder/index.tsx | 6 +- .../Layouts/Folder/AskDocuments/index.tsx | 6 +- .../Folder/CreateCustomerNote/index.tsx | 4 +- .../Layouts/Folder/CreateFolder/index.tsx | 398 ++++++------------ .../FolderInformation/ClientSection/index.tsx | 6 +- .../Folder/FolderInformation/index.tsx | 9 +- .../Layouts/Folder/UpdateClient/index.tsx | 6 +- .../Folder/UpdateCustomerNote/index.tsx | 4 +- .../UpdateFolderCollaborators/index.tsx | 4 +- .../Folder/UpdateFolderMetadata/index.tsx | 4 +- .../Layouts/Folder/ViewDocuments/index.tsx | 4 +- src/front/Components/Layouts/Folder/index.tsx | 6 +- .../FolderInformation/index.tsx | 6 +- .../UpdateFolderMetadata/index.tsx | 4 +- src/front/Components/Layouts/Login/index.tsx | 6 +- .../Layouts/LoginCallback/index.tsx | 4 +- .../Layouts/LoginCallbackCustomer/index.tsx | 4 +- .../Layouts/LoginCustomer/StepEmail/index.tsx | 2 +- .../Layouts/LoginCustomer/StepTotp/index.tsx | 4 +- .../Components/Layouts/LoginHome/index.tsx | 4 +- src/front/Components/Layouts/Rib/index.tsx | 4 +- .../Layouts/Roles/RolesCreate/index.tsx | 4 +- .../SubscribeIllimityComponent/index.tsx | 4 +- .../SubscribeStandardComponent/index.tsx | 4 +- .../SubscriptionManageCollaborators/index.tsx | 4 +- .../SubscriptionFacturation/index.tsx | 10 +- .../Subscription/SubscriptionInvite/index.tsx | 4 +- 53 files changed, 278 insertions(+), 423 deletions(-) diff --git a/src/front/Components/DesignSystem/Button/classes.module.scss b/src/front/Components/DesignSystem/Button/classes.module.scss index 84428234..20b31af3 100644 --- a/src/front/Components/DesignSystem/Button/classes.module.scss +++ b/src/front/Components/DesignSystem/Button/classes.module.scss @@ -53,7 +53,7 @@ } } - &[styleType="outlined"] { + &[styletype="outlined"] { border-color: var(--button-outlined-primary-default-border); svg { @@ -81,7 +81,7 @@ } } - &[styleType="text"] { + &[styletype="text"] { svg { stroke: var(--button-text-primary-default-contrast); } @@ -136,7 +136,7 @@ } } - &[styleType="outlined"] { + &[styletype="outlined"] { svg { stroke: var(--button-outlined-secondary-default-contrast); } @@ -161,7 +161,7 @@ } } - &[styleType="text"] { + &[styletype="text"] { svg { stroke: var(--button-text-secondary-default-contrast); } @@ -215,7 +215,7 @@ } } - &[styleType="outlined"] { + &[styletype="outlined"] { svg { stroke: var(--button-outlined-neutral-default-contrast); } @@ -240,7 +240,7 @@ } } - &[styleType="text"] { + &[styletype="text"] { svg { stroke: var(--button-text-neutral-default-contrast); } @@ -294,7 +294,7 @@ } } - &[styleType="outlined"] { + &[styletype="outlined"] { svg { stroke: var(--button-outlined-error-default-contrast); } @@ -320,7 +320,7 @@ } } - &[styleType="text"] { + &[styletype="text"] { svg { stroke: var(--button-text-error-default-contrast); } @@ -376,7 +376,7 @@ } } - &[styleType="outlined"] { + &[styletype="outlined"] { svg { stroke: var(--button-outlined-warning-default-contrast); } @@ -403,7 +403,7 @@ } } - &[styleType="text"] { + &[styletype="text"] { svg { stroke: var(--button-text-warning-default-contrast); } @@ -459,7 +459,7 @@ } } - &[styleType="outlined"] { + &[styletype="outlined"] { svg { stroke: var(--button-outlined-success-default-contrast); } @@ -486,7 +486,7 @@ } } - &[styleType="text"] { + &[styletype="text"] { svg { stroke: var(--button-text-success-default-contrast); } @@ -542,7 +542,7 @@ } } - &[styleType="outlined"] { + &[styletype="outlined"] { svg { stroke: var(--button-outlined-info-default-contrast); } @@ -568,7 +568,7 @@ } } - &[styleType="text"] { + &[styletype="text"] { svg { stroke: var(--button-text-info-default-contrast); } @@ -621,15 +621,15 @@ /** * Every possible style types */ - &[styleType="contained"] { + &[styletype="contained"] { color: var(--color-generic-white); } - &[styleType="outlined"] { + &[styletype="outlined"] { background: transparent; } - &[styleType="text"] { + &[styletype="text"] { background: transparent; border: none; border-bottom: 1px solid; diff --git a/src/front/Components/DesignSystem/Button/index.tsx b/src/front/Components/DesignSystem/Button/index.tsx index 1c02e5e2..d63c01cf 100644 --- a/src/front/Components/DesignSystem/Button/index.tsx +++ b/src/front/Components/DesignSystem/Button/index.tsx @@ -19,7 +19,7 @@ export enum EButtonSize { SM = "sm", } -export enum EButtonStyleType { +export enum EButtonstyletype { CONTAINED = "contained", OUTLINED = "outlined", TEXT = "text", @@ -30,7 +30,7 @@ type IProps = { children?: React.ReactNode; variant?: EButtonVariant; size?: EButtonSize; - styleType?: EButtonStyleType; + styletype?: EButtonstyletype; fullwidth?: boolean; leftIcon?: React.ReactNode; rightIcon?: React.ReactNode; @@ -44,7 +44,7 @@ export default function Button(props: IProps) { let { variant = EButtonVariant.PRIMARY, size = EButtonSize.LG, - styleType = EButtonStyleType.CONTAINED, + styletype = EButtonstyletype.CONTAINED, disabled = false, type = "button", isLoading = false, @@ -59,7 +59,7 @@ export default function Button(props: IProps) { const fullwidthattr = fullwidth.toString(); const isloadingattr = isLoading.toString(); - const attributes = { ...props, variant, disabled, type, isloadingattr, fullwidthattr, sizing: size, styleType }; + const attributes = { ...props, variant, disabled, type, isloadingattr, fullwidthattr, sizing: size, styletype }; delete attributes.fullwidth; delete attributes.leftIcon; delete attributes.rightIcon; diff --git a/src/front/Components/DesignSystem/DepositDocument/index.tsx b/src/front/Components/DesignSystem/DepositDocument/index.tsx index 938960a3..79958a8d 100644 --- a/src/front/Components/DesignSystem/DepositDocument/index.tsx +++ b/src/front/Components/DesignSystem/DepositDocument/index.tsx @@ -5,7 +5,7 @@ import DocumentCheckIcon from "@Assets/Icons/document-check.svg"; import Image from "next/image"; import React from "react"; -import Button, { EButtonStyleType, EButtonVariant } from "../Button"; +import Button, { EButtonstyletype, EButtonVariant } from "../Button"; import Tooltip from "../ToolTip"; import Typography, { ETypo, ETypoColor } from "../Typography"; import classes from "./classes.module.scss"; @@ -192,7 +192,7 @@ export default class DepositDocument extends React.Component {
@@ -55,7 +55,7 @@ export default class Confirm extends React.Component {
diff --git a/src/front/Components/Elements/BackArrow/index.tsx b/src/front/Components/Elements/BackArrow/index.tsx index 446d1177..ea21f95a 100644 --- a/src/front/Components/Elements/BackArrow/index.tsx +++ b/src/front/Components/Elements/BackArrow/index.tsx @@ -1,5 +1,5 @@ import { ChevronLeftIcon } from "@heroicons/react/24/solid"; -import Button, { EButtonSize, EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonSize, EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import { NextRouter, useRouter } from "next/router"; import React from "react"; @@ -23,7 +23,7 @@ class BackArrowClass extends React.Component { diff --git a/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/index.tsx index 58eed683..6db68829 100644 --- a/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultDeedTypeDashboard/index.tsx @@ -1,6 +1,6 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import DeedTypes, { IGetDeedTypesParams } from "@Front/Api/LeCoffreApi/Notary/DeedTypes/DeedTypes"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Header from "@Front/Components/DesignSystem/Header"; import Version from "@Front/Components/DesignSystem/Version"; import BackArrow from "@Front/Components/Elements/BackArrow"; @@ -71,7 +71,7 @@ export default class DefaultDeedTypesDashboard extends React.Component} variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.TEXT} + styletype={EButtonstyletype.TEXT} onClick={this.onOpenLeftSide}> {this.props.mobileBackText ?? "Retour"} diff --git a/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/index.tsx index 9954b852..584f0b58 100644 --- a/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultDocumentTypesDashboard/index.tsx @@ -1,6 +1,6 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import DocumentTypes from "@Front/Api/LeCoffreApi/Notary/DocumentTypes/DocumentTypes"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Header from "@Front/Components/DesignSystem/Header"; import Version from "@Front/Components/DesignSystem/Version"; import BackArrow from "@Front/Components/Elements/BackArrow"; @@ -72,7 +72,7 @@ export default class DefaultDocumentTypesDashboard extends React.Component} variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.TEXT} + styletype={EButtonstyletype.TEXT} onClick={this.onOpenLeftSide}> {this.props.mobileBackText ?? "Retour"} diff --git a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx index 39c7f6c8..e4730df6 100644 --- a/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultNotaryDashboard/index.tsx @@ -1,6 +1,6 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import Folders, { IGetFoldersParams } from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import FolderListContainer from "@Front/Components/DesignSystem/FolderListContainer"; import FolderArchivedListContainer from "@Front/Components/DesignSystem/FolderArchivedListContainer"; import Header from "@Front/Components/DesignSystem/Header"; @@ -88,7 +88,7 @@ export default class DefaultNotaryDashboard extends React.Component} variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.TEXT} + styletype={EButtonstyletype.TEXT} onClick={this.onOpenLeftSide}> {this.props.mobileBackText ?? "Retour"} diff --git a/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/index.tsx index 746995f0..bbb729f3 100644 --- a/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultOfficeDashboard/index.tsx @@ -1,6 +1,6 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import Offices from "@Front/Api/LeCoffreApi/SuperAdmin/Offices/Offices"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Header from "@Front/Components/DesignSystem/Header"; import Version from "@Front/Components/DesignSystem/Version"; import BackArrow from "@Front/Components/Elements/BackArrow"; @@ -12,7 +12,7 @@ import React, { ReactNode } from "react"; import classes from "./classes.module.scss"; import OfficeListContainer from "./OfficeListContainer"; -import { ChevronLeftIcon } from "@heroicons/react/24/outline"; +import { ChevronLeftIcon } from "@heroicons/react/24/outline"; type IProps = { title: string; @@ -69,7 +69,7 @@ export default class DefaultOfficeDashboard extends React.Component} variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.TEXT} + styletype={EButtonstyletype.TEXT} onClick={this.onOpenLeftSide}> {this.props.mobileBackText ?? "Retour"} diff --git a/src/front/Components/LayoutTemplates/DefaultRoleDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultRoleDashboard/index.tsx index f9c5c1a6..86a971ce 100644 --- a/src/front/Components/LayoutTemplates/DefaultRoleDashboard/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultRoleDashboard/index.tsx @@ -1,6 +1,6 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import OfficeRoles, { IGetRolesParams } from "@Front/Api/LeCoffreApi/Admin/OfficeRoles/OfficeRoles"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Header from "@Front/Components/DesignSystem/Header"; import Version from "@Front/Components/DesignSystem/Version"; import BackArrow from "@Front/Components/Elements/BackArrow"; @@ -69,7 +69,7 @@ export default class DefaultRoleDashboard extends React.Component} variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.TEXT} + styletype={EButtonstyletype.TEXT} onClick={this.onOpenLeftSide}> {this.props.mobileBackText ?? "Retour"} diff --git a/src/front/Components/LayoutTemplates/DefaultUserDashboard/index.tsx b/src/front/Components/LayoutTemplates/DefaultUserDashboard/index.tsx index c3f75175..27a6d89b 100644 --- a/src/front/Components/LayoutTemplates/DefaultUserDashboard/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultUserDashboard/index.tsx @@ -1,7 +1,7 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import { ChevronLeftIcon } from "@heroicons/react/20/solid"; import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/SuperAdmin/Users/Users"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Header from "@Front/Components/DesignSystem/Header"; import Version from "@Front/Components/DesignSystem/Version"; import BackArrow from "@Front/Components/Elements/BackArrow"; @@ -69,7 +69,7 @@ export default class DefaultUserDashboard extends React.Component} variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.TEXT} + styletype={EButtonstyletype.TEXT} onClick={this.onOpenLeftSide}> {this.props.mobileBackText ?? "Retour"} diff --git a/src/front/Components/Layouts/ClientDashboard/index.tsx b/src/front/Components/Layouts/ClientDashboard/index.tsx index 768c509a..d7478605 100644 --- a/src/front/Components/Layouts/ClientDashboard/index.tsx +++ b/src/front/Components/Layouts/ClientDashboard/index.tsx @@ -1,6 +1,6 @@ "use client"; import Documents, { IGetDocumentsparams } from "@Front/Api/LeCoffreApi/Customer/Documents/Documents"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import DepositDocument from "@Front/Components/DesignSystem/DepositDocument"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; @@ -225,7 +225,7 @@ export default function ClientDashboard(props: IProps) { diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx index d5c491e3..1f9c1557 100644 --- a/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx +++ b/src/front/Components/Layouts/DeedTypes/DeedTypesCreate/index.tsx @@ -1,5 +1,5 @@ import DeedTypes from "@Front/Api/LeCoffreApi/Admin/DeedTypes/DeedTypes"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; @@ -101,7 +101,7 @@ export default function DeedTypesCreate(props: IProps) { validationError={validationError.find((error) => error.property === "description")} />
- diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx index 7c7f936b..c9712168 100644 --- a/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx +++ b/src/front/Components/Layouts/DeedTypes/DeedTypesEdit/index.tsx @@ -1,5 +1,5 @@ import DeedTypes from "@Front/Api/LeCoffreApi/Admin/DeedTypes/DeedTypes"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; @@ -119,7 +119,7 @@ export default function DeedTypesEdit() { validationError={validationError.find((error) => error.property === "description")} />
- diff --git a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx index 31ec5a3a..b6f19080 100644 --- a/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx +++ b/src/front/Components/Layouts/DeedTypes/DeedTypesInformations/index.tsx @@ -2,7 +2,7 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import PenICon from "@Assets/Icons/pen.svg"; import DeedTypes from "@Front/Api/LeCoffreApi/Admin/DeedTypes/DeedTypes"; import DocumentTypes from "@Front/Api/LeCoffreApi/Admin/DocumentTypes/DocumentTypes"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import { IOption } from "@Front/Components/DesignSystem/Form/SelectField"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; @@ -123,7 +123,7 @@ export default function DeedTypesInformations(props: IProps) {
Paramétrage des listes de pièces - @@ -174,7 +174,7 @@ export default function DeedTypesInformations(props: IProps) {
-
diff --git a/src/front/Components/Layouts/DesignSystem/index.tsx b/src/front/Components/Layouts/DesignSystem/index.tsx index 7a60cacd..599555c1 100644 --- a/src/front/Components/Layouts/DesignSystem/index.tsx +++ b/src/front/Components/Layouts/DesignSystem/index.tsx @@ -1,4 +1,4 @@ -import Button, { EButtonSize, EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonSize, EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import CircleProgress from "@Front/Components/DesignSystem/CircleProgress"; import Newsletter from "@Front/Components/DesignSystem/Newsletter"; import Table from "@Front/Components/DesignSystem/Table"; @@ -156,14 +156,14 @@ export default function DesignSystem() { leftIcon={} rightIcon={} variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Primary
@@ -175,14 +175,14 @@ export default function DesignSystem() { leftIcon={} rightIcon={} variant={EButtonVariant.SECONDARY} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Secondary
@@ -194,14 +194,14 @@ export default function DesignSystem() { leftIcon={} rightIcon={} variant={EButtonVariant.NEUTRAL} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Neutral
@@ -213,14 +213,14 @@ export default function DesignSystem() { leftIcon={} rightIcon={} variant={EButtonVariant.ERROR} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Error
@@ -232,14 +232,14 @@ export default function DesignSystem() { leftIcon={} rightIcon={} variant={EButtonVariant.WARNING} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Warning @@ -251,14 +251,14 @@ export default function DesignSystem() { leftIcon={} rightIcon={} variant={EButtonVariant.SUCCESS} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Success @@ -270,14 +270,14 @@ export default function DesignSystem() { leftIcon={} rightIcon={} variant={EButtonVariant.INFO} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Info diff --git a/src/front/Components/Layouts/DocumentTypes/DocumentTypesCreate/index.tsx b/src/front/Components/Layouts/DocumentTypes/DocumentTypesCreate/index.tsx index 824176c7..4a32fda9 100644 --- a/src/front/Components/Layouts/DocumentTypes/DocumentTypesCreate/index.tsx +++ b/src/front/Components/Layouts/DocumentTypes/DocumentTypesCreate/index.tsx @@ -1,5 +1,5 @@ import DocumentTypes from "@Front/Api/LeCoffreApi/Notary/DocumentTypes/DocumentTypes"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; @@ -71,7 +71,7 @@ export default function DocumentTypesCreate(props: IProps) { validationError={validationError.find((error) => error.property === "public_description")} />
- diff --git a/src/front/Components/Layouts/DocumentTypes/DocumentTypesEdit/index.tsx b/src/front/Components/Layouts/DocumentTypes/DocumentTypesEdit/index.tsx index 1c7c23de..9bc489bd 100644 --- a/src/front/Components/Layouts/DocumentTypes/DocumentTypesEdit/index.tsx +++ b/src/front/Components/Layouts/DocumentTypes/DocumentTypesEdit/index.tsx @@ -1,5 +1,5 @@ import DocumentTypes from "@Front/Api/LeCoffreApi/Notary/DocumentTypes/DocumentTypes"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; @@ -91,7 +91,7 @@ export default function DocumentTypesEdit() { validationError={validationError.find((error) => error.property === "public_description")} />
- diff --git a/src/front/Components/Layouts/DocumentTypes/DocumentTypesInformations/index.tsx b/src/front/Components/Layouts/DocumentTypes/DocumentTypesInformations/index.tsx index 778d5812..fb568562 100644 --- a/src/front/Components/Layouts/DocumentTypes/DocumentTypesInformations/index.tsx +++ b/src/front/Components/Layouts/DocumentTypes/DocumentTypesInformations/index.tsx @@ -11,7 +11,7 @@ import { useRouter } from "next/router"; import { useEffect, useState } from "react"; import classes from "./classes.module.scss"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; export default function DocumentTypesInformations() { const router = useRouter(); @@ -38,7 +38,7 @@ export default function DocumentTypesInformations() {
Paramétrage des listes de pièces - diff --git a/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx b/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx index bbc01d05..8232f187 100644 --- a/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx +++ b/src/front/Components/Layouts/Folder/AddClientToFolder/index.tsx @@ -1,6 +1,6 @@ import Customers from "@Front/Api/LeCoffreApi/Notary/Customers/Customers"; import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import { IOption } from "@Front/Components/DesignSystem/Form/SelectField"; import MultiSelect from "@Front/Components/DesignSystem/MultiSelect"; @@ -99,7 +99,7 @@ class AddClientToFolderClass extends BasePage { />
- @@ -134,7 +134,7 @@ class AddClientToFolderClass extends BasePage { />
- diff --git a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx index b477af69..d2fe5615 100644 --- a/src/front/Components/Layouts/Folder/AskDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/AskDocuments/index.tsx @@ -1,7 +1,7 @@ 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"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import CheckBox from "@Front/Components/DesignSystem/CheckBox"; import Form from "@Front/Components/DesignSystem/Form"; import { IOption } from "@Front/Components/DesignSystem/Form/SelectField"; @@ -77,14 +77,14 @@ class AskDocumentsClass extends BasePage {
- diff --git a/src/front/Components/Layouts/Folder/CreateCustomerNote/index.tsx b/src/front/Components/Layouts/Folder/CreateCustomerNote/index.tsx index 53cb39ac..6920e548 100644 --- a/src/front/Components/Layouts/Folder/CreateCustomerNote/index.tsx +++ b/src/front/Components/Layouts/Folder/CreateCustomerNote/index.tsx @@ -1,4 +1,4 @@ -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography"; @@ -63,7 +63,7 @@ class CreateCustomerNoteClass extends BasePage {
- diff --git a/src/front/Components/Layouts/Folder/CreateFolder/index.tsx b/src/front/Components/Layouts/Folder/CreateFolder/index.tsx index 21f68401..2845bc86 100644 --- a/src/front/Components/Layouts/Folder/CreateFolder/index.tsx +++ b/src/front/Components/Layouts/Folder/CreateFolder/index.tsx @@ -13,320 +13,172 @@ import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Ty import BackArrow from "@Front/Components/Elements/BackArrow"; import DefaultDoubleSidePage from "@Front/Components/LayoutTemplates/DefaultDoubleSidePage"; import { ValidationError } from "class-validator/types/validation/ValidationError"; -import { Deed, DeedType, Office, OfficeFolder } from "le-coffre-resources/dist/Notary"; +import { Deed, Office, OfficeFolder } from "le-coffre-resources/dist/Notary"; import User from "le-coffre-resources/dist/Notary"; -import { NextRouter, useRouter } from "next/router"; -import React from "react"; -import { ActionMeta, MultiValue } from "react-select"; +import { useRouter } from "next/router"; +import React, { useEffect, useState } from "react"; -import BasePage from "../../Base"; import classes from "./classes.module.scss"; import JwtService from "@Front/Services/JwtService/JwtService"; +import { DeedType } from "le-coffre-resources/dist/Notary"; -type IFormValues = { - folder_number: string; - entitled: string; - act_typ: IOption | null; - personal_note: string; - collaborators: MultiValue; -}; +export default function CreateFolder(): JSX.Element { + /** + * State + */ + const [folderAccess, setFolderAccess] = useState<"whole_office" | "select_collaborators">("whole_office"); + const [availableDeedTypes, setAvailableDeedTypes] = useState([]); + const [collaborators, setCollaborators] = useState([]); + const [validationError, setValidationError] = useState([]); -type IProps = {}; + /** + * Hooks call + */ + const router = useRouter(); -type IPropsClass = IProps & { - router: NextRouter; -}; + /** + * Callbacks + */ -type IState = { - folder_access: string; - formValues: IFormValues; - deedTypes: DeedType[]; - deedTypesOptions: IOption[]; - collaborators: User[]; - collaboratorsOptions: IOption[]; - validationError: ValidationError[]; -}; -class CreateFolderClass extends BasePage { - public constructor(props: IPropsClass) { - super(props); - - this.state = { - folder_access: "select_collaborators", - formValues: { - folder_number: "", - entitled: "", - act_typ: null, - personal_note: "", - collaborators: [], - }, - deedTypes: [], - deedTypesOptions: [], - collaborators: [], - collaboratorsOptions: [], - validationError: [], - }; - - this.radioOnChange = this.radioOnChange.bind(this); - this.onFolderNumberChange = this.onFolderNumberChange.bind(this); - this.onEntitleChange = this.onEntitleChange.bind(this); - this.onActTypeChange = this.onActTypeChange.bind(this); - this.onPersonalNoteChange = this.onPersonalNoteChange.bind(this); - this.onCollaboratorsChange = this.onCollaboratorsChange.bind(this); - this.isFormSubmittable = this.isFormSubmittable.bind(this); - this.onFormSubmit = this.onFormSubmit.bind(this); - this.renderSelectCollaborators = this.renderSelectCollaborators.bind(this); - } - - public override render(): JSX.Element { - return ( - -
- - - Créer un dossier - - - Informations dossier - -
-
- error.property === "folder_number")} - /> - error.property === "name")} - /> - error.property === "deed")} - /> - error.property === "description")} - required={false} - /> - -
- - Accès au dossier - -
- - Sélectionner tout l'office - - - Sélectionner certains collaborateurs - -
- {this.renderSelectCollaborators()} -
- -
-
-
-
-
-
- ); - } - - public override async componentDidMount() { - const deedTypes = await DeedTypes.getInstance().get(); - // no need to pass query 'where' param here, default query for notaries include only users which are in the same office as the caller - const collaborators = await Users.getInstance().get({ - include: { contact: true }, - }); - - const collaboratorsOptions = this.mapUsersOptions(collaborators); - - this.setState({ - deedTypes, - deedTypesOptions: this.mapDeedOptions(deedTypes), - collaborators, - collaboratorsOptions: collaboratorsOptions, - }); - - const userId = JwtService.getInstance().decodeJwt()?.userId; - - const currentCollaborator = collaboratorsOptions.find(({ value }) => value === userId); - if (!currentCollaborator) return; - - this.setState({ - formValues: { - ...this.state.formValues, - collaborators: [{ label: currentCollaborator.label, value: currentCollaborator.value }], - }, - }); - } - - private mapDeedOptions(deedTypes: DeedType[]) { - return deedTypes.map((deedType) => ({ - label: deedType.name, - value: deedType.uid, - })) as IOption[]; - } - - private mapUsersOptions(collaborators: User[]) { - return collaborators.map((collaborator) => ({ - label: collaborator.contact?.last_name.concat(" ", collaborator.contact.first_name), - value: collaborator.uid, - })) as IOption[]; - } - - private onFolderNumberChange(e: React.ChangeEvent) { - this.setState({ - formValues: { - ...this.state.formValues, - folder_number: e.target.value, - }, - }); - } - - private onEntitleChange(e: React.ChangeEvent) { - this.setState({ - formValues: { - ...this.state.formValues, - entitled: e.target.value, - }, - }); - } - - private onActTypeChange(selectedOption: IOption) { - this.setState({ - formValues: { - ...this.state.formValues, - act_typ: selectedOption, - }, - }); - } - - private onPersonalNoteChange(e: React.ChangeEvent) { - this.setState({ - formValues: { - ...this.state.formValues, - personal_note: e.target.value, - }, - }); - } - - private onCollaboratorsChange(newValue: MultiValue, actionMeta: ActionMeta) { - this.setState({ - formValues: { - ...this.state.formValues, - collaborators: newValue, - }, - }); - } - - private async onFormSubmit( + const onFormSubmit = async ( e: React.FormEvent | null, values: { [key: string]: any; }, - ) { + ) => { + console.log(values); const officeId = JwtService.getInstance().decodeJwt()?.office_Id; - const selectedDeedTypeUid: DeedType | undefined = this.state.deedTypes.find( - (deedType) => deedType.uid === this.state.formValues.act_typ?.value, - ); - let stakeholders = this.state.collaborators; - if (this.state.folder_access === "select_collaborators") { - stakeholders = this.state.collaborators.filter((collaborator) => { - return this.state.formValues.collaborators?.some((selectedCollaborator) => { - return selectedCollaborator.value === collaborator.uid; - }); - }); - } const officeFolderForm = OfficeFolder.hydrate({ folder_number: values["folder_number"], name: values["name"], description: values["description"], deed: Deed.hydrate({ deed_type: DeedType.hydrate({ - uid: selectedDeedTypeUid?.uid, + uid: values["deed"], }), }), office: Office.hydrate({ uid: officeId, }), customers: [], - stakeholders, + stakeholders: collaborators, }); try { await officeFolderForm.validateOrReject?.({ groups: ["createFolder"], forbidUnknownValues: true }); } catch (validationErrors) { - this.setState({ - validationError: validationErrors as ValidationError[], - }); + setValidationError(validationErrors as ValidationError[]); return; } try { const newOfficeFolder = await Folders.getInstance().post(officeFolderForm); if (!newOfficeFolder) return; - this.props.router.push(`/folders/${newOfficeFolder.uid}`); + router.push(`/folders/${newOfficeFolder.uid}`); } catch (backError) { if (!Array.isArray(backError)) return; - this.setState({ - validationError: backError as ValidationError[], - }); + setValidationError(backError as ValidationError[]); return; } - } + }; - private renderSelectCollaborators() { - if (this.state.folder_access !== "select_collaborators") return null; - return ( -
- error.property === "stakeholders")} - /> + const radioOnChange = (e: React.ChangeEvent) => + setFolderAccess(e.target.value as "whole_office" | "select_collaborators"); + + /** + * UseEffect + */ + useEffect(() => { + DeedTypes.getInstance() + .get() + .then((deedTypes) => setAvailableDeedTypes(deedTypes)); + // no need to pass query 'where' param here, default query for notaries include only users which are in the same office as the caller + Users.getInstance() + .get({ + include: { contact: true }, + }) + .then((users) => setCollaborators(users)); + }, []); + + /** + * Renderer + */ + return ( + +
+ + + Créer un dossier + + + Informations dossier + +
+
+ error.property === "folder_number")} + /> + error.property === "name")} + /> + ({ + label: deedType.name, + value: deedType.uid, + })) as IOption[] + } + name="deed" + placeholder={"Type d'acte"} + errors={validationError.find((error) => error.property === "deed")} + /> + error.property === "description")} + required={false} + /> + +
+ + Accès au dossier + +
+ + Sélectionner tout l'office + + + Sélectionner certains collaborateurs + +
+ {folderAccess === "select_collaborators" && ( +
+ ({ + label: collaborator.contact?.last_name.concat(" ", collaborator.contact.first_name), + value: collaborator.uid, + })) as IOption[] + } + placeholder="Sélectionner les collaborateurs" + validationError={validationError.find((error) => error.property === "stakeholders")} + /> +
+ )} +
+ +
+
+
+
- ); - } - private isFormSubmittable(): boolean { - if ( - this.state.formValues.entitled === "" || - this.state.formValues.personal_note === "" || - this.state.formValues.folder_number === "" || - this.state.formValues.act_typ === null - ) { - return false; - } - - if (this.state.folder_access === "select_collaborators" && this.state.formValues.collaborators.length === 0) { - return false; - } - - return true; - } - - private radioOnChange(e: React.ChangeEvent) { - this.setState({ - folder_access: e.target.value, - }); - } -} - -export default function CreateFolder(props: IProps): JSX.Element { - const router = useRouter(); - return ; +
+ ); } diff --git a/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx index f9727d63..f0277861 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/ClientSection/index.tsx @@ -1,5 +1,5 @@ import PlusIcon from "@Assets/Icons/plus.svg"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; import UserFolder from "@Front/Components/DesignSystem/UserFolder"; import { OfficeFolder } from "le-coffre-resources/dist/Notary"; @@ -41,7 +41,7 @@ export default class ClientSection extends React.Component {
{this.renderCustomerFolders()}
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && ( - @@ -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 26ff7502..7b7519db 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -1,7 +1,7 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; import OfficeFolderAnchors from "@Front/Api/LeCoffreApi/Notary/OfficeFolderAnchors/OfficeFolderAnchors"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import FolderBoxInformation, { EFolderBoxInformationType } from "@Front/Components/DesignSystem/FolderBoxInformation"; import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; @@ -96,7 +96,10 @@ class FolderInformationClass extends BasePage { Informations du dossier
- @@ -142,7 +145,7 @@ class FolderInformationClass extends BasePage {
diff --git a/src/front/Components/Layouts/Folder/UpdateClient/index.tsx b/src/front/Components/Layouts/Folder/UpdateClient/index.tsx index 11bf9643..f40edc66 100644 --- a/src/front/Components/Layouts/Folder/UpdateClient/index.tsx +++ b/src/front/Components/Layouts/Folder/UpdateClient/index.tsx @@ -1,5 +1,5 @@ import Customers from "@Front/Api/LeCoffreApi/Notary/Customers/Customers"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; @@ -130,14 +130,14 @@ class UpdateClientClass extends BasePage {
{!this.doesInputsHaveValues() ? ( - ) : ( diff --git a/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx b/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx index 633bfcd7..1dd32553 100644 --- a/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx +++ b/src/front/Components/Layouts/Folder/UpdateFolderCollaborators/index.tsx @@ -1,6 +1,6 @@ import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; import Users, { IGetUsersParams } from "@Front/Api/LeCoffreApi/Notary/Users/Users"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import { IOption } from "@Front/Components/DesignSystem/Form/SelectField"; import MultiSelect from "@Front/Components/DesignSystem/MultiSelect"; @@ -105,7 +105,7 @@ class UpdateFolderCollaboratorsClass extends BasePage {
- diff --git a/src/front/Components/Layouts/Folder/UpdateFolderMetadata/index.tsx b/src/front/Components/Layouts/Folder/UpdateFolderMetadata/index.tsx index 4d11b944..1c8dee00 100644 --- a/src/front/Components/Layouts/Folder/UpdateFolderMetadata/index.tsx +++ b/src/front/Components/Layouts/Folder/UpdateFolderMetadata/index.tsx @@ -1,5 +1,5 @@ import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import Select, { IOption } from "@Front/Components/DesignSystem/Form/SelectField"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; @@ -120,7 +120,7 @@ export default function UpdateFolderMetadata() {
- diff --git a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx index 15256050..2fcf31db 100644 --- a/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx +++ b/src/front/Components/Layouts/Folder/ViewDocuments/index.tsx @@ -1,7 +1,7 @@ import LeftArrowIcon from "@Assets/Icons/left-arrow.svg"; import RightArrowIcon from "@Assets/Icons/right-arrow.svg"; import Documents from "@Front/Api/LeCoffreApi/Notary/Documents/Documents"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import FilePreview from "@Front/Components/DesignSystem/FilePreview"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; @@ -119,7 +119,7 @@ class ViewDocumentsClass extends BasePage { <> diff --git a/src/front/Components/Layouts/Folder/index.tsx b/src/front/Components/Layouts/Folder/index.tsx index 1e01b43b..844893de 100644 --- a/src/front/Components/Layouts/Folder/index.tsx +++ b/src/front/Components/Layouts/Folder/index.tsx @@ -1,5 +1,5 @@ import LogoIcon from "@Assets/logo_small_blue.svg"; -import Button, { EButtonVariant, EButtonStyleType } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonVariant, EButtonstyletype } from "@Front/Components/DesignSystem/Button"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; import DefaultNotaryDashboard from "@Front/Components/LayoutTemplates/DefaultNotaryDashboard"; import { DocumentIcon } from "@heroicons/react/24/outline"; @@ -56,7 +56,7 @@ export default function Folder() {
Besoin d'aide ? Consultez nos guides pour bien démarrer. -
@@ -65,7 +65,7 @@ export default function Folder() {
Vous avez des questions ? Notre équipe de support est là pour vous aider. -
diff --git a/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx b/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx index 34cf5284..600ee8f6 100644 --- a/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/FolderArchived/FolderInformation/index.tsx @@ -1,6 +1,6 @@ import ChevronIcon from "@Assets/Icons/chevron.svg"; import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import FolderBoxInformation, { EFolderBoxInformationType } from "@Front/Components/DesignSystem/FolderBoxInformation"; import QuantityProgressBar from "@Front/Components/DesignSystem/QuantityProgressBar"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; @@ -68,7 +68,7 @@ class FolderInformationClass extends BasePage { @@ -120,7 +120,7 @@ class FolderInformationClass extends BasePage {
diff --git a/src/front/Components/Layouts/FolderArchived/UpdateFolderMetadata/index.tsx b/src/front/Components/Layouts/FolderArchived/UpdateFolderMetadata/index.tsx index dd2825ba..a8ac0db5 100644 --- a/src/front/Components/Layouts/FolderArchived/UpdateFolderMetadata/index.tsx +++ b/src/front/Components/Layouts/FolderArchived/UpdateFolderMetadata/index.tsx @@ -1,4 +1,4 @@ -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import Select, { IOption } from "@Front/Components/DesignSystem/Form/SelectField"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; @@ -62,7 +62,7 @@ class UpdateFolderMetadataClass extends BasePage {
- diff --git a/src/front/Components/Layouts/Login/index.tsx b/src/front/Components/Layouts/Login/index.tsx index dfc30001..94dbbe78 100644 --- a/src/front/Components/Layouts/Login/index.tsx +++ b/src/front/Components/Layouts/Login/index.tsx @@ -1,6 +1,6 @@ import CoffreIcon from "@Assets/Icons/coffre.svg"; import idNoteLogo from "@Assets/Icons/id-note-logo.svg"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography"; import DefaultDoubleSidePage from "@Front/Components/LayoutTemplates/DefaultDoubleSidePage"; import Image from "next/image"; @@ -58,14 +58,14 @@ export default function Login() {
Connexion espace professionnel
-
Vous n'arrivez pas à vous connecter ?
- diff --git a/src/front/Components/Layouts/LoginCallback/index.tsx b/src/front/Components/Layouts/LoginCallback/index.tsx index c77340e6..a488e4aa 100644 --- a/src/front/Components/Layouts/LoginCallback/index.tsx +++ b/src/front/Components/Layouts/LoginCallback/index.tsx @@ -8,7 +8,7 @@ import Module from "@Front/Config/Module"; import Auth from "@Front/Api/Auth/IdNot"; import DefaultDoubleSidePage from "@Front/Components/LayoutTemplates/DefaultDoubleSidePage"; import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Loader from "@Front/Components/DesignSystem/Loader"; import UserStore from "@Front/Stores/UserStore"; import Link from "next/link"; @@ -73,7 +73,7 @@ export default function LoginCallBack() {
Vous n'arrivez pas à vous connecter ?
- diff --git a/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx b/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx index 408923c4..f2420f9b 100644 --- a/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx +++ b/src/front/Components/Layouts/LoginCallbackCustomer/index.tsx @@ -6,7 +6,7 @@ import React, { useEffect } from "react"; import classes from "./classes.module.scss"; import DefaultDoubleSidePage from "@Front/Components/LayoutTemplates/DefaultDoubleSidePage"; import Typography, { ETypo } from "@Front/Components/DesignSystem/Typography"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Loader from "@Front/Components/DesignSystem/Loader"; import Customers, { ICustomerTokens } from "@Front/Api/Auth/Id360/Customers/Customers"; import CustomerStore from "@Front/Stores/CustomerStore"; @@ -59,7 +59,7 @@ export default function LoginCallBackCustomer() {
Vous n'arrivez pas à vous connecter ?
- diff --git a/src/front/Components/Layouts/LoginCustomer/StepEmail/index.tsx b/src/front/Components/Layouts/LoginCustomer/StepEmail/index.tsx index 262ea9ff..64c15e5c 100644 --- a/src/front/Components/Layouts/LoginCustomer/StepEmail/index.tsx +++ b/src/front/Components/Layouts/LoginCustomer/StepEmail/index.tsx @@ -57,7 +57,7 @@ export default function StepEmail(props: IProps) {
Vous n'arrivez pas à vous connecter ?
- + */}
); diff --git a/src/front/Components/Layouts/LoginCustomer/StepTotp/index.tsx b/src/front/Components/Layouts/LoginCustomer/StepTotp/index.tsx index fd8e80a8..d954ef82 100644 --- a/src/front/Components/Layouts/LoginCustomer/StepTotp/index.tsx +++ b/src/front/Components/Layouts/LoginCustomer/StepTotp/index.tsx @@ -3,7 +3,7 @@ import classes from "./classes.module.scss"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; import Form from "@Front/Components/DesignSystem/Form"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import { ValidationError } from "class-validator"; type IProps = { onSubmit: (e: React.FormEvent | null, values: { [key: string]: string }) => void; @@ -56,7 +56,7 @@ export default function StepTotp(props: IProps) { Vous n'avez rien reçu ?
- diff --git a/src/front/Components/Layouts/Rib/index.tsx b/src/front/Components/Layouts/Rib/index.tsx index ee2ac0ba..44f78205 100644 --- a/src/front/Components/Layouts/Rib/index.tsx +++ b/src/front/Components/Layouts/Rib/index.tsx @@ -3,7 +3,7 @@ import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Ty import classes from "./classes.module.scss"; import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; import FilePreview from "@Front/Components/DesignSystem/FilePreview"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import { useRouter } from "next/router"; import OfficeRib from "@Front/Api/LeCoffreApi/Notary/OfficeRib/OfficeRib"; import DepositRib from "@Front/Components/DesignSystem/DepositRib"; @@ -133,7 +133,7 @@ export default function Rib() { - diff --git a/src/front/Components/Layouts/Roles/RolesCreate/index.tsx b/src/front/Components/Layouts/Roles/RolesCreate/index.tsx index a0553f55..46c92282 100644 --- a/src/front/Components/Layouts/Roles/RolesCreate/index.tsx +++ b/src/front/Components/Layouts/Roles/RolesCreate/index.tsx @@ -1,5 +1,5 @@ import OfficeRoles from "@Front/Api/LeCoffreApi/Admin/OfficeRoles/OfficeRoles"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import Form from "@Front/Components/DesignSystem/Form"; import TextField from "@Front/Components/DesignSystem/Form/TextField"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; @@ -100,7 +100,7 @@ export default function RolesCreate(props: IProps) { validationError={validationError.find((error) => error.property === "name")} />
- diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx index da5f7936..2cf69af2 100644 --- a/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx @@ -6,7 +6,7 @@ import SubscribeCheckoutTicket, { EPaymentFrequencyFront as EPaymentFrequency } import { EForfeitType, forfeitsPrices } from "../../SubscriptionFacturation"; import { useEffect, useState } from "react"; import Check from "@Front/Components/Elements/Icons/Check"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import RadioBox from "@Front/Components/DesignSystem/RadioBox"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; import useOpenable from "@Front/Hooks/useOpenable"; @@ -135,7 +135,7 @@ export default function SubscribeIllimityComponent({ hasNavTab = true }: IProps)
-
diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx index e19a3dc5..5730ac85 100644 --- a/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx @@ -7,7 +7,7 @@ import SubscribeCheckoutTicket, { EPaymentFrequencyFront as EPaymentFrequency } import { EForfeitType, collaboratorPrice, forfeitsPrices } from "../../SubscriptionFacturation"; import { useEffect, useState } from "react"; import Check from "@Front/Components/Elements/Icons/Check"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import RadioBox from "@Front/Components/DesignSystem/RadioBox"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; import useOpenable from "@Front/Hooks/useOpenable"; @@ -130,7 +130,7 @@ export default function SubscribeStandardComponent({ hasNavTab = true }: IProps)
-
diff --git a/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/index.tsx b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/index.tsx index 7ddd1ebf..65727a1c 100644 --- a/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/index.tsx +++ b/src/front/Components/Layouts/Subscription/Manage/SubscriptionManageCollaborators/index.tsx @@ -3,7 +3,7 @@ import classes from "./classes.module.scss"; import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; import Form from "@Front/Components/DesignSystem/Form"; import CheckBox from "@Front/Components/DesignSystem/CheckBox"; -import Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import Button, { EButtonstyletype, EButtonVariant } from "@Front/Components/DesignSystem/Button"; import React, { useCallback, useEffect, useState } from "react"; import User, { Subscription } from "le-coffre-resources/dist/Admin"; import JwtService, { IUserJwtPayload } from "@Front/Services/JwtService/JwtService"; @@ -118,7 +118,7 @@ export default function SubscriptionManageCollaborators() { // @@ -173,7 +173,7 @@ export default function SubscriptionFacturation() { href={ Module.getInstance().get().modules.pages.Subscription.pages.ManageCollaborators.props.path }> - @@ -234,7 +234,7 @@ export default function SubscriptionFacturation() { onClick={manageSubscription} fullwidth variant={EButtonVariant.PRIMARY} - styleType={EButtonStyleType.OUTLINED}> + styletype={EButtonstyletype.OUTLINED}> Améliorer mon abonnement // @@ -243,7 +243,7 @@ export default function SubscriptionFacturation() {
-