From 74c6cf7b6ba3ee83b0aad2cfc858d1f01d49e4e2 Mon Sep 17 00:00:00 2001
From: ehsan
Date: Mon, 22 Sep 2025 19:56:28 +0330
Subject: [PATCH] remove additional code && fix bug select city and state &&
alert success and error message for comment in doctors page && handle set
data after user searched in field doctors page && set data appointment from
doctor data && set value in field search after user reload in doctors page
---
app/component/ProfressDetail.js | 4 +-
app/component/comment/ItemUser.js | 13 ++-
app/component/comment/SendAnswer.js | 8 +-
.../doctor/appointmentList/ItemAppointment.js | 2 +-
components/doctor/appointmentList/index.js | 14 ++--
.../cards/comments/chart/index.js | 2 +-
.../cards/comments/modal/BtnNewComment.js | 26 ++++++
.../cards/comments/modal/ModalAnswer.js | 13 +--
components/doctor/index.js | 2 +-
components/doctors/head/index.js | 19 +++--
components/doctors/search/AutoComplete.js | 80 +++++++++++++------
.../panel/addDoctor/form/sendReq/index.js | 3 +-
helper/index.js | 5 ++
13 files changed, 132 insertions(+), 59 deletions(-)
create mode 100644 components/doctor/detailDoctor/cards/comments/modal/BtnNewComment.js
diff --git a/app/component/ProfressDetail.js b/app/component/ProfressDetail.js
index 1a0d028..3df210b 100644
--- a/app/component/ProfressDetail.js
+++ b/app/component/ProfressDetail.js
@@ -8,7 +8,7 @@ function ProgressDetail({ data }) {
{data.label}
- {numberToArStyle(data.progress)}%
+ {numberToArStyle(data)}%
);
diff --git a/app/component/comment/ItemUser.js b/app/component/comment/ItemUser.js
index 10617c4..6e5dd3b 100644
--- a/app/component/comment/ItemUser.js
+++ b/app/component/comment/ItemUser.js
@@ -9,7 +9,7 @@ import LikeComment from "@/components/icons/LikeComment";
import Replies from "./Replies";
import AnswerField from "./AnswerField";
import SendAnswer from "./SendAnswer";
-import { timeAgo } from "@/helper";
+import { alert, isUserLoggedIn, timeAgo } from "@/helper";
import { request } from "@/services/response";
import { useState } from "react";
@@ -142,8 +142,15 @@ function ItemUser({ update, setUpdate, data }) {