feat(patient): add search user functionality by mobile number
This commit is contained in:
@@ -2305,6 +2305,7 @@ export default function DoctorDetailPage({ isOwnProfile = false }: { isOwnProfil
|
||||
onSuccess: () => {
|
||||
toast.success('آدرس حذف شد'); setDeletingAddrId(null);
|
||||
qc.invalidateQueries({ queryKey: ['doctor-detail', uuid] });
|
||||
qc.invalidateQueries({ queryKey: ['available-locations', uuid] });
|
||||
},
|
||||
onError: (e: Error) => toast.error(e.message),
|
||||
});
|
||||
@@ -2764,7 +2765,10 @@ export default function DoctorDetailPage({ isOwnProfile = false }: { isOwnProfil
|
||||
onClose={() => { setAddrModalOpen(false); setEditingAddr(null); }}
|
||||
existing={editingAddr}
|
||||
doctorUuid={uuid}
|
||||
onSaved={() => qc.invalidateQueries({ queryKey: ['doctor-detail', uuid] })}
|
||||
onSaved={() => {
|
||||
qc.invalidateQueries({ queryKey: ['doctor-detail', uuid] });
|
||||
qc.invalidateQueries({ queryKey: ['available-locations', uuid] });
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user