refacto icon buttons component
This commit is contained in:
parent
ccad35be6c
commit
848edfa12c
@ -138,7 +138,7 @@ export default class UserFolder extends React.Component<IProps, IState> {
|
|||||||
{!this.props.isArchived && this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
{!this.props.isArchived && this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
||||||
<div className={classes["button-container"]}>
|
<div className={classes["button-container"]}>
|
||||||
<Link href={redirectPath}>
|
<Link href={redirectPath}>
|
||||||
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} icon={PlusIcon}>
|
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} rightIcon={<PlusIcon />}>
|
||||||
Demander des documents
|
Demander des documents
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -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 Button, { EButtonStyleType, EButtonVariant } from "@Front/Components/DesignSystem/Button";
|
||||||
import { NextRouter, useRouter } from "next/router";
|
import { NextRouter, useRouter } from "next/router";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
@ -21,9 +21,7 @@ class BackArrowClass extends React.Component<IPropsClass, IState> {
|
|||||||
public override render(): JSX.Element {
|
public override render(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.handleClick}>
|
onClick={this.handleClick}>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import ChevronIcon from "@Assets/Icons/chevron.svg";
|
import ChevronIcon from "@Assets/Icons/chevron.svg";
|
||||||
|
import { ChevronDownIcon } from "@heroicons/react/24/outline";
|
||||||
import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/Admin/Users/Users";
|
import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/Admin/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 Header from "@Front/Components/DesignSystem/Header";
|
||||||
@ -69,9 +70,7 @@ export default class DefaultCollaboratorDashboard extends React.Component<IProps
|
|||||||
{this.props.mobileBackText && (
|
{this.props.mobileBackText && (
|
||||||
<div className={classes["back-arrow-mobile"]}>
|
<div className={classes["back-arrow-mobile"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.onOpenLeftSide}>
|
onClick={this.onOpenLeftSide}>
|
||||||
|
@ -12,6 +12,7 @@ import React, { ReactNode } from "react";
|
|||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import DeedListContainer from "./DeedTypeListContainer";
|
import DeedListContainer from "./DeedTypeListContainer";
|
||||||
|
import { ChevronDownIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title: string;
|
title: string;
|
||||||
@ -68,9 +69,7 @@ export default class DefaultDeedTypesDashboard extends React.Component<IProps, I
|
|||||||
{this.props.mobileBackText && (
|
{this.props.mobileBackText && (
|
||||||
<div className={classes["back-arrow-mobile"]}>
|
<div className={classes["back-arrow-mobile"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.onOpenLeftSide}>
|
onClick={this.onOpenLeftSide}>
|
||||||
|
@ -13,6 +13,7 @@ import React, { ReactNode } from "react";
|
|||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import DocumentTypeListContainer from "./DocumentTypeListContainer";
|
import DocumentTypeListContainer from "./DocumentTypeListContainer";
|
||||||
|
import { ChevronDownIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title: string;
|
title: string;
|
||||||
@ -69,9 +70,7 @@ export default class DefaultDocumentTypesDashboard extends React.Component<IProp
|
|||||||
{this.props.mobileBackText && (
|
{this.props.mobileBackText && (
|
||||||
<div className={classes["back-arrow-mobile"]}>
|
<div className={classes["back-arrow-mobile"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.onOpenLeftSide}>
|
onClick={this.onOpenLeftSide}>
|
||||||
|
@ -14,6 +14,7 @@ import Image from "next/image";
|
|||||||
import React, { ReactNode } from "react";
|
import React, { ReactNode } from "react";
|
||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
|
import { ChevronDownIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title: string;
|
title: string;
|
||||||
@ -85,9 +86,7 @@ export default class DefaultNotaryDashboard extends React.Component<IProps, ISta
|
|||||||
{this.props.mobileBackText && (
|
{this.props.mobileBackText && (
|
||||||
<div className={classes["back-arrow-mobile"]}>
|
<div className={classes["back-arrow-mobile"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.onOpenLeftSide}>
|
onClick={this.onOpenLeftSide}>
|
||||||
|
@ -12,6 +12,7 @@ import React, { ReactNode } from "react";
|
|||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import OfficeListContainer from "./OfficeListContainer";
|
import OfficeListContainer from "./OfficeListContainer";
|
||||||
|
import { ChevronDownIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title: string;
|
title: string;
|
||||||
@ -66,9 +67,8 @@ export default class DefaultOfficeDashboard extends React.Component<IProps, ISta
|
|||||||
{this.props.mobileBackText && (
|
{this.props.mobileBackText && (
|
||||||
<div className={classes["back-arrow-mobile"]}>
|
<div className={classes["back-arrow-mobile"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.onOpenLeftSide}>
|
onClick={this.onOpenLeftSide}>
|
||||||
|
@ -12,6 +12,7 @@ import React, { ReactNode } from "react";
|
|||||||
|
|
||||||
import classes from "./classes.module.scss";
|
import classes from "./classes.module.scss";
|
||||||
import RoleListContainer from "./RoleListContainer";
|
import RoleListContainer from "./RoleListContainer";
|
||||||
|
import { ChevronDownIcon } from "@heroicons/react/24/outline";
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title: string;
|
title: string;
|
||||||
@ -66,9 +67,8 @@ export default class DefaultRoleDashboard extends React.Component<IProps, IState
|
|||||||
{this.props.mobileBackText && (
|
{this.props.mobileBackText && (
|
||||||
<div className={classes["back-arrow-mobile"]}>
|
<div className={classes["back-arrow-mobile"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.onOpenLeftSide}>
|
onClick={this.onOpenLeftSide}>
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import ChevronIcon from "@Assets/Icons/chevron.svg";
|
import ChevronIcon from "@Assets/Icons/chevron.svg";
|
||||||
|
import { ChevronDownIcon } from "@heroicons/react/20/solid";
|
||||||
import Users, { IGetUsersparams } from "@Front/Api/LeCoffreApi/SuperAdmin/Users/Users";
|
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 Header from "@Front/Components/DesignSystem/Header";
|
||||||
@ -66,9 +67,7 @@ export default class DefaultUserDashboard extends React.Component<IProps, IState
|
|||||||
{this.props.mobileBackText && (
|
{this.props.mobileBackText && (
|
||||||
<div className={classes["back-arrow-mobile"]}>
|
<div className={classes["back-arrow-mobile"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={ChevronIcon}
|
leftIcon={<ChevronDownIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"left"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.onOpenLeftSide}>
|
onClick={this.onOpenLeftSide}>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import ChevronIcon from "@Assets/Icons/chevron.svg";
|
import { ChevronDownIcon } from "@heroicons/react/20/solid";
|
||||||
import OfficeRoles from "@Front/Api/LeCoffreApi/Admin/OfficeRoles/OfficeRoles";
|
import OfficeRoles from "@Front/Api/LeCoffreApi/Admin/OfficeRoles/OfficeRoles";
|
||||||
import Roles from "@Front/Api/LeCoffreApi/Admin/Roles/Roles";
|
import Roles from "@Front/Api/LeCoffreApi/Admin/Roles/Roles";
|
||||||
import Users from "@Front/Api/LeCoffreApi/Admin/Users/Users";
|
import Users from "@Front/Api/LeCoffreApi/Admin/Users/Users";
|
||||||
@ -193,12 +193,7 @@ export default function CollaboratorInformations(props: IProps) {
|
|||||||
<Typography typo={ETypo.TEXT_LG_SEMIBOLD}>Modifier le rôle</Typography>
|
<Typography typo={ETypo.TEXT_LG_SEMIBOLD}>Modifier le rôle</Typography>
|
||||||
<div className={classes["gestion-role"]}>
|
<div className={classes["gestion-role"]}>
|
||||||
<Link href={Module.getInstance().get().modules.pages.Roles.props.path}>
|
<Link href={Module.getInstance().get().modules.pages.Roles.props.path}>
|
||||||
<Button
|
<Button leftIcon={<ChevronDownIcon />} variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT}>
|
||||||
icon={ChevronIcon}
|
|
||||||
iconposition={"right"}
|
|
||||||
iconstyle={{ width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
|
||||||
styleType={EButtonStyleType.TEXT}>
|
|
||||||
Gestion des rôles
|
Gestion des rôles
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -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 Documents from "@Front/Api/LeCoffreApi/Notary/Documents/Documents";
|
||||||
import Folders from "@Front/Api/LeCoffreApi/Notary/Folders/Folders";
|
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";
|
||||||
@ -75,9 +75,7 @@ class AskDocumentsClass extends BasePage<IPropsClass, IState> {
|
|||||||
</div>
|
</div>
|
||||||
<div className={classes["add-document-container"]}>
|
<div className={classes["add-document-container"]}>
|
||||||
<Button
|
<Button
|
||||||
icon={PlusIcon}
|
rightIcon={<PlusIcon style={{ transform: "rotate(180deg)", width: "22px", height: "22px" }} />}
|
||||||
iconposition={"right"}
|
|
||||||
iconstyle={{ transform: "rotate(180deg)", width: "22px", height: "22px" }}
|
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
onClick={this.openModal}>
|
onClick={this.openModal}>
|
||||||
|
@ -41,7 +41,7 @@ export default class ClientSection extends React.Component<IProps, IState> {
|
|||||||
<div className={classes["client"]}>{this.renderCustomerFolders()}</div>
|
<div className={classes["client"]}>{this.renderCustomerFolders()}</div>
|
||||||
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
||||||
<Link href={navigatePath}>
|
<Link href={navigatePath}>
|
||||||
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} icon={PlusIcon}>
|
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} rightIcon={<PlusIcon />}>
|
||||||
Ajouter un client
|
Ajouter un client
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
@ -56,7 +56,7 @@ export default class ClientSection extends React.Component<IProps, IState> {
|
|||||||
</div>
|
</div>
|
||||||
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
{this.props.anchorStatus === AnchorStatus.NOT_ANCHORED && (
|
||||||
<Link href={navigatePath}>
|
<Link href={navigatePath}>
|
||||||
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} icon={PlusIcon}>
|
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} rightIcon={<PlusIcon />}>
|
||||||
Ajouter un client
|
Ajouter un client
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -96,7 +96,7 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
|
|||||||
<Typography typo={ETypo.TITLE_H1}>Informations du dossier</Typography>
|
<Typography typo={ETypo.TITLE_H1}>Informations du dossier</Typography>
|
||||||
</div>
|
</div>
|
||||||
<Link href={redirectPathEditCollaborators}>
|
<Link href={redirectPathEditCollaborators}>
|
||||||
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} icon={ChevronIcon}>
|
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} rightIcon={<ChevronIcon/>}>
|
||||||
Modifier les collaborateurs
|
Modifier les collaborateurs
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -66,7 +66,10 @@ class FolderInformationClass extends BasePage<IPropsClass, IState> {
|
|||||||
<Typography typo={ETypo.TITLE_H1}>Informations du dossier</Typography>
|
<Typography typo={ETypo.TITLE_H1}>Informations du dossier</Typography>
|
||||||
</div>
|
</div>
|
||||||
<Link href={redirectPathEditCollaborators}>
|
<Link href={redirectPathEditCollaborators}>
|
||||||
<Button variant={EButtonVariant.PRIMARY} styleType={EButtonStyleType.TEXT} icon={ChevronIcon}>
|
<Button
|
||||||
|
variant={EButtonVariant.PRIMARY}
|
||||||
|
styleType={EButtonStyleType.TEXT}
|
||||||
|
rightIcon={<ChevronIcon />}>
|
||||||
Modifier les collaborateurs
|
Modifier les collaborateurs
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
|
@ -58,7 +58,7 @@ export default function Login() {
|
|||||||
<Typography typo={ETypo.DISPLAY_LARGE}>
|
<Typography typo={ETypo.DISPLAY_LARGE}>
|
||||||
<div className={classes["title"]}>Connexion espace professionnel</div>
|
<div className={classes["title"]}>Connexion espace professionnel</div>
|
||||||
</Typography>
|
</Typography>
|
||||||
<Button onClick={redirectUserOnConnection} icon={idNoteLogo} iconposition={"left"}>
|
<Button onClick={redirectUserOnConnection} leftIcon={<Image alt="id-not-logo" src={idNoteLogo} />} >
|
||||||
S'identifier avec ID.not
|
S'identifier avec ID.not
|
||||||
</Button>
|
</Button>
|
||||||
<Typography typo={ETypo.TEXT_LG_REGULAR}>
|
<Typography typo={ETypo.TEXT_LG_REGULAR}>
|
||||||
|
@ -112,7 +112,7 @@ export default function SubscriptionInvite() {
|
|||||||
onClick={addLine}
|
onClick={addLine}
|
||||||
variant={EButtonVariant.PRIMARY}
|
variant={EButtonVariant.PRIMARY}
|
||||||
styleType={EButtonStyleType.TEXT}
|
styleType={EButtonStyleType.TEXT}
|
||||||
icon={PlusIcon}>
|
rightIcon={<PlusIcon />}>
|
||||||
Ajouter une adresse email
|
Ajouter une adresse email
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user