handel filter clinic and added changenumber function
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user