fix bug dashboard bugs & handle request update data in user profile & change design button in home page

This commit is contained in:
Ehsan
2025-06-13 22:12:58 +03:30
parent eea8737778
commit 891b0e8273
9 changed files with 23 additions and 24 deletions
@@ -5,8 +5,8 @@ import ItemMedication from "./ItemMedication";
import ModalAddMedications from "./modal";
function Medications({ data, changeData, updateData, loading }) {
const { other } = data;
const { medications } = other && other[0];
const medications =
data && data.other && data.other[0] && data.other[0].medications;
const tableHead = ["ردیف", "نام دارو", "دوز مصرفی", "تعداد و زمان مصرف", ""];
const centerTable = [0];
const [open, setOpen] = useState(false);