This commit is contained in:
Ehsan
2024-10-22 01:38:38 +03:30
parent 9af22c0645
commit cee4abcfbf
6 changed files with 32 additions and 37 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ function EditField({
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);
// changeData(!data.isEdit, "isEdit", name);
}}
>
{icon ? icon : iconGray ? <EditGrayA /> : <EditOrangeA />}
+11 -12
View File
@@ -41,18 +41,17 @@ function AutoCompleteSelect({ list, isError, updateData, name, label }) {
border: isError ? "1px solid red !important" : "",
},
}}
renderOption={(props, option) => {
return (
<Button
{...props}
fullWidth
className="!flex !justify-start !p-[8px] !text-start !text-[#A1A1A1] hover:dark:!bg-[#35343D] !bg-[#FFF] dark:!bg-[#1F1D2B]"
style={{}}
>
{option.label}
</Button>
);
}}
renderOption={(props, option) => (
<Button
fullWidth
{...props}
style={{}}
key={props.id}
className="!flex !justify-start !p-[8px] !text-start !text-[#A1A1A1] hover:dark:!bg-[#35343D] !bg-[#FFF] dark:!bg-[#1F1D2B]"
>
{option.label}
</Button>
)}
renderInput={(params) => (
<TextField
fullWidth