get data with filter location for first time, get comment of doctor and show in doctor page, handle new comment

This commit is contained in:
Ehsan
2025-09-03 22:05:26 +03:30
parent 6920e4078b
commit ebfe47468c
14 changed files with 187 additions and 50 deletions
-2
View File
@@ -23,8 +23,6 @@ function DoctorsPage({ params, matchedCity, matchedState, list }) {
const findItem = (id) => specialties.find((item) => item.id === id);
const isParent = findItem(fieldId) && findItem(fieldId).parent;
const findSpecial = (id) => specialties.find((item) => item.id === id);
const [data, setData] = useState({
category: isParent ? findItem(isParent) : findItem(fieldId),
specialties: isParent && findItem(fieldId),
+1 -1
View File
@@ -14,7 +14,7 @@ function ListDoctors({ loading, list }) {
</ul>
) : (
<p className="text-center py-10 text-gray-500">
هیچ دکتری وجود ندارد!
دکتری برای نمایش وجود ندارد.
</p>
)}
</div>