handle change data and update data in dashboard page for all tabs
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user