change date type for req & design and fields & add requests & fix bug appointment and dashboard
This commit is contained in:
@@ -13,16 +13,11 @@ function ItemRelatives({ row, idx, changeData }) {
|
||||
address: row.contact.address,
|
||||
};
|
||||
|
||||
const [data, setData] = useState(contentData);
|
||||
const resetData = () => setData(contentData);
|
||||
const [data, setData] = useState(row);
|
||||
const resetData = () => setData(row);
|
||||
|
||||
useEffect(() => {
|
||||
setData({
|
||||
name: row.name,
|
||||
relation: row.relation,
|
||||
phone: row.contact.phone,
|
||||
address: row.contact.address,
|
||||
});
|
||||
setData(row);
|
||||
}, [row]);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user