diff --git a/src/front/Components/DesignSystem/Form/TextField/index.tsx b/src/front/Components/DesignSystem/Form/TextField/index.tsx index 92f5d601..ae033882 100644 --- a/src/front/Components/DesignSystem/Form/TextField/index.tsx +++ b/src/front/Components/DesignSystem/Form/TextField/index.tsx @@ -6,7 +6,7 @@ import BaseField, { IProps as IBaseFieldProps } from "../BaseField"; import classes from "./classes.module.scss"; import classnames from "classnames"; import Image from "next/image"; - +import { XMarkIcon } from "@heroicons/react/24/outline"; export type IProps = IBaseFieldProps & { canCopy?: boolean; password?: boolean; @@ -40,11 +40,16 @@ export default class TextField extends BaseField { disabled={this.props.disabled} type={this.props.password ? "password" : "text"} /> - {this.props.canCopy && ( + {this.props.canCopy && !this.hasError() && (
Copy icon
)} + {this.hasError() && ( +
+ +
+ )} {this.hasError() &&
{this.renderErrors()}
} diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx index 7b7519db..5d0d988e 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -3,7 +3,6 @@ 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 FolderBoxInformation, { EFolderBoxInformationType } from "@Front/Components/DesignSystem/FolderBoxInformation"; -import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; import Confirm from "@Front/Components/DesignSystem/OldModal/Confirm"; import QuantityProgressBar from "@Front/Components/DesignSystem/QuantityProgressBar"; import Typography, { ETypo, ETypoColor } from "@Front/Components/DesignSystem/Typography"; @@ -22,6 +21,7 @@ import classes from "./classes.module.scss"; import ClientSection from "./ClientSection"; import Loader from "@Front/Components/DesignSystem/Loader"; import Newsletter from "@Front/Components/DesignSystem/Newsletter"; +import TextAreaField from "@Front/Components/DesignSystem/Form/TextareaField"; export enum AnchorStatus { "VERIFIED_ON_CHAIN" = "VERIFIED_ON_CHAIN",