From 3c2b44a65f0fd304dbaf3fa67fdb9e04f3fddefc Mon Sep 17 00:00:00 2001 From: Arezoo Date: Wed, 22 Oct 2025 23:16:35 +0330 Subject: [PATCH] not found filter handel --- components/clinic/components/doctors/List.js | 37 ++++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/components/clinic/components/doctors/List.js b/components/clinic/components/doctors/List.js index 2a5b473..60d8077 100644 --- a/components/clinic/components/doctors/List.js +++ b/components/clinic/components/doctors/List.js @@ -33,26 +33,33 @@ function List({ limit, }; const doctors = await getClinicDoctors(slug, params); - setDoctors(doctors.data); + setDoctors(doctors.data); setTotalPage(doctors?.page?.total_pages || 1); setPage(num); - }; const doctorList = Array.isArray(doctors?.data) ? doctors.data : doctors; return ( - <> - -
- -
+ <> + {doctorList?.length === 0 ? ( +
+ دکتری مطابق فیلتر شما یافت نشد +
+ ) : ( + <> + +
+ +
+ + )} ); }