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:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user