handle like comments data, req for update comments and add loading for like comment && search specialty with searchbar in doctors page && set category and specialty data

This commit is contained in:
ehsan
2025-09-20 17:04:36 +03:30
parent 2f078eba3c
commit dfc8492afa
14 changed files with 366 additions and 121 deletions
@@ -7,9 +7,6 @@ import TextLoading from "@/app/component/loading/Text";
import CustomLoading from "@/app/component/loading/Custom";
function Chart({ comments, doctor }) {
console.log(doctor);
console.log(comments);
return (
<div
className="
@@ -50,7 +50,7 @@ function ModalAnswer({ doctor }) {
setLoading(true);
request
.postDoctorComment(comment.detail)
.then((res) => {
.then(() => {
let newComment = comment.rate;
newComment = {
correct_diagnosis: newComment[1].progress,
@@ -105,6 +105,7 @@ function ModalAnswer({ doctor }) {
<Rating
className="!my-[24px]"
value={averageRate}
readOnly
dir="ltr"
sx={{
"& .MuiSvgIcon-root": {