handle change data and update data in dashboard page for all tabs

This commit is contained in:
Ehsan
2025-06-11 16:52:01 +03:30
parent 72ed07071c
commit bf64271d14
26 changed files with 235 additions and 118 deletions
@@ -51,15 +51,15 @@ function ModalEditItem({
<Button
variant="contained"
onClick={() => {
const changedKey = {
name: data.name,
relation: data.relation,
contact: {
phone: data.phone,
address: data.address,
},
};
changeData("update", name, id, changedKey);
// const changedKey = {
// name: data.name,
// relation: data.relation,
// contact: {
// phone: data.phone,
// address: data.address,
// },
// };
changeData("update", name, id, data);
handleClose();
}}
className="!py-[4px] md:!py-[6px] !min-h-[32px] md:!min-h-[39px] lg:!min-h-[46px] lg:!py-[8px] !px-[10px] md:!px-[14px] lg:!px-[18px] !rounded-[4px] !text-[#EFEFEF] !text-[12px] md:!text-[14px] lg:!text-[16px] !font-medium"