handel filter clinic and added changenumber function

This commit is contained in:
Arezoo
2025-10-21 13:31:44 +03:30
parent e8754fda35
commit 2cbf96ec6f
14 changed files with 171 additions and 72 deletions
+7 -7
View File
@@ -13,13 +13,13 @@ import PointD from "@/components/icons/PointD";
function ItemDoctor({ doctor, loading, setDoctors }) {
const handleLoading = () => {
// setDoctors((prevDoctors) =>
// prevDoctors.map((item) =>
// item.id === doctor.id
// ? { ...item, loading: true }
// : { ...item, loading: false }
// )
// );
setDoctors((prevDoctors) =>
prevDoctors.map((item) =>
item.id === doctor.id
? { ...item, loading: true }
: { ...item, loading: false }
)
);
};
return (