add field number in step 3

This commit is contained in:
Ehsan
2024-10-20 01:00:34 +03:30
parent 2b64cb3601
commit 46c33c6eb9
6 changed files with 45 additions and 21 deletions
+14 -9
View File
@@ -12,16 +12,19 @@ function EditField({
iconGray,
isTransparent,
noDisable,
type,
props,
}) {
return (
<div className="relative w-full">
<TextField
{...props}
value={data?.value}
rows={multiline}
multiline={multiline}
disabled={noDisable ? false : !data?.isEdit}
placeholder={placeholder || ""}
type="text"
type={type || "text"}
className={`!w-full res-field-account dark:!bg-transparent ${
isTransparent ? "!bg-transparent lg:!bg-[#FFF]" : "!bg-[#FFF]"
}`}
@@ -48,15 +51,17 @@ function EditField({
},
}}
/>
<Button
className={`!absolute !left-[8px] !-translate-y-1/2 !min-w-fit !p-1
{!type && (
<Button
className={`!absolute !left-[8px] !-translate-y-1/2 !min-w-fit !p-1
${multiline ? "!top-[24px]" : "!top-1/2"}`}
onClick={() => {
changeData(!data.isEdit, "isEdit", name);
}}
>
{icon ? icon : iconGray ? <EditGrayA /> : <EditOrangeA />}
</Button>
onClick={() => {
changeData(!data.isEdit, "isEdit", name);
}}
>
{icon ? icon : iconGray ? <EditGrayA /> : <EditOrangeA />}
</Button>
)}
</div>
);
}