Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2023cf7b3 |
@@ -82,12 +82,16 @@ const KeyMeritsEdit = ({
|
|||||||
meritsDescription: found?.meritsDescription,
|
meritsDescription: found?.meritsDescription,
|
||||||
meritsHeaderArabic: found?.meritsHeaderArabic,
|
meritsHeaderArabic: found?.meritsHeaderArabic,
|
||||||
meritsDescriptionArabic: found?.meritsDescriptionArabic,
|
meritsDescriptionArabic: found?.meritsDescriptionArabic,
|
||||||
iconImage: null,
|
icon_xid: found?.icon_xid,
|
||||||
});
|
});
|
||||||
|
console.log("==============",found);
|
||||||
|
|
||||||
}
|
}
|
||||||
}, [found, reset]);
|
}, [found, reset]);
|
||||||
|
|
||||||
const onSubmit = async (data) => {
|
const onSubmit = async (data) => {
|
||||||
|
console.log(data);
|
||||||
|
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
try {
|
try {
|
||||||
const id = actionId;
|
const id = actionId;
|
||||||
@@ -97,6 +101,9 @@ const KeyMeritsEdit = ({
|
|||||||
render: () => <ToastBox message={res?.data?.message} />,
|
render: () => <ToastBox message={res?.data?.message} />,
|
||||||
});
|
});
|
||||||
handleClose()
|
handleClose()
|
||||||
|
reset({
|
||||||
|
meritsHeader: "",
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (res?.error?.data?.code === 400) {
|
if (res?.error?.data?.code === 400) {
|
||||||
@@ -106,6 +113,7 @@ const KeyMeritsEdit = ({
|
|||||||
),
|
),
|
||||||
});
|
});
|
||||||
handleClose()
|
handleClose()
|
||||||
|
reset();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -288,7 +296,7 @@ const KeyMeritsEdit = ({
|
|||||||
alt={selectedImageIcon}
|
alt={selectedImageIcon}
|
||||||
boxSize="1rem"
|
boxSize="1rem"
|
||||||
mr="12px"
|
mr="12px"
|
||||||
/>}{" "}
|
/>}
|
||||||
<Text as={"span"} fontSize={"sm"} fontWeight={500}>
|
<Text as={"span"} fontSize={"sm"} fontWeight={500}>
|
||||||
{selectedIcon}
|
{selectedIcon}
|
||||||
</Text>
|
</Text>
|
||||||
|
|||||||
Reference in New Issue
Block a user