-
+
-
+
-
+
-
+
{data &&
data.images_clinic &&
[...data?.images_clinic, ...data?.images_clinic]?.map((item, idx) =>
idx !== 0 ? (
-
+
-
-
+
+
-
+
-
+
-
+
-
+
);
diff --git a/components/clinic/components/contact/ContentDetail.js b/components/clinic/components/contact/ContentDetail.js
index 81a2662..4d6812f 100644
--- a/components/clinic/components/contact/ContentDetail.js
+++ b/components/clinic/components/contact/ContentDetail.js
@@ -1,14 +1,14 @@
import TextLoading from "@/app/component/loading/Text";
-function ContentDetail({ head, detail, loading }) {
+function ContentDetail({ head, detail }) {
return (
-
+
{head}
-
+
{detail}
diff --git a/components/clinic/components/contact/Detail.js b/components/clinic/components/contact/Detail.js
index 8fcc12b..655d841 100644
--- a/components/clinic/components/contact/Detail.js
+++ b/components/clinic/components/contact/Detail.js
@@ -1,20 +1,18 @@
import ContentDetail from "./ContentDetail";
-function Detail({ data, loading }) {
+function Detail({ data }) {
return (
);
}
diff --git a/components/clinic/components/contact/index.js b/components/clinic/components/contact/index.js
index 387a6af..171288c 100644
--- a/components/clinic/components/contact/index.js
+++ b/components/clinic/components/contact/index.js
@@ -7,7 +7,7 @@ import RoutingC from "@/components/icons/RoutingC";
import ModalOpenLocation from "@/app/component/openLocation";
import CustomLoading from "@/app/component/loading/Custom";
-function Contact({ data, loading }) {
+function Contact({ data }) {
const [open, setOpen] = useState(false);
const handleOpen = () => setOpen(true);
const handleClose = () => setOpen(false);
@@ -21,7 +21,7 @@ function Contact({ data, loading }) {
"
>
-
+
);
}
diff --git a/components/clinic/index.js b/components/clinic/index.js
index 4e6948c..e074738 100644
--- a/components/clinic/index.js
+++ b/components/clinic/index.js
@@ -1,6 +1,6 @@
"use client";
-import { useEffect, useState } from "react";
+import { useState } from "react";
import About from "./components/about";
import Contact from "./components/contact";
@@ -11,21 +11,14 @@ const listTab = ["درباره کلینیک", "اطلاعات تماس", "پزش
function ClinicPage({ data, doctors }) {
const [value, setValue] = useState(0);
- const [loading, setLoading] = useState(true);
const handleChange = (event, newValue) => setValue(newValue);
const Components = [
-
,
-
,
-
,
+
,
+
,
+
,
];
- useEffect(() => {
- setTimeout(() => {
- setLoading(false);
- }, 2000);
- }, []);
-
return (
-
+
-
+
{doctor?.title}
-
+
تخصص: {doctor?.expertise}
-
+
{doctor?.experience} سال تجربه
@@ -42,14 +42,14 @@ function Title({ doctor, loading }) {
-
+
کد نظام پزشکی: {doctor?.medical_system_code}
-
+
diff --git a/components/doctor/detailDoctor/cards/AboutDcotor.js b/components/doctor/detailDoctor/cards/AboutDcotor.js
index 05e557c..1cffee6 100644
--- a/components/doctor/detailDoctor/cards/AboutDcotor.js
+++ b/components/doctor/detailDoctor/cards/AboutDcotor.js
@@ -5,7 +5,7 @@ import { Button } from "@mui/material";
import MultilineLoading from "@/app/component/loading/Multiline";
import TextLoading from "@/app/component/loading/Text";
-function AboutDcotor({ doctor, loading }) {
+function AboutDcotor({ doctor }) {
const [isMore, setIsMore] = useState(false);
return (
@@ -15,7 +15,7 @@ function AboutDcotor({ doctor, loading }) {
className="absolute -translate-y-[148px] sm:-translate-y-[157px] md:-translate-y-[166px] lg:-translate-y-[176px]"
>
-
+
(
-
+
{item}
diff --git a/components/doctor/detailDoctor/cards/comments/chart/ProgressAll.js b/components/doctor/detailDoctor/cards/comments/chart/ProgressAll.js
index 23d2e93..771cab1 100644
--- a/components/doctor/detailDoctor/cards/comments/chart/ProgressAll.js
+++ b/components/doctor/detailDoctor/cards/comments/chart/ProgressAll.js
@@ -2,10 +2,10 @@ import CircularLoading from "@/app/component/loading/Circular";
import { numberToArStyle } from "@/helper";
import { CircularProgress } from "@mui/material";
-function ProgressAll({ doctor, loading }) {
+function ProgressAll({ doctor }) {
return (
-
+
-
+
امتیاز کلی کاربران: {doctor?.overall_score} از 5
@@ -24,8 +24,8 @@ function Chart({ doctor, loading }) {
-
-
+
+
-
+
@@ -52,18 +52,14 @@ function Chart({ doctor, loading }) {
-
+
{doctor?.progress_detail?.map((item, idx) => (
-
+
))}
-
+
);
diff --git a/components/doctor/detailDoctor/cards/comments/index.js b/components/doctor/detailDoctor/cards/comments/index.js
index db73aff..ade705c 100644
--- a/components/doctor/detailDoctor/cards/comments/index.js
+++ b/components/doctor/detailDoctor/cards/comments/index.js
@@ -2,7 +2,7 @@ import Chart from "./chart";
import Comment from "@/app/component/comment";
import ModalAnswer from "./modal/ModalAnswer";
-function Comments({ doctor, loading }) {
+function Comments({ doctor }) {
return (
-
-
+
+
);
}
diff --git a/components/doctor/detailDoctor/cards/locations/index.js b/components/doctor/detailDoctor/cards/locations/index.js
index 57f29d1..77621ae 100644
--- a/components/doctor/detailDoctor/cards/locations/index.js
+++ b/components/doctor/detailDoctor/cards/locations/index.js
@@ -1,7 +1,7 @@
import CustomLoading from "@/app/component/loading/Custom";
import Item from "./Item";
-function Locations({ doctor, loading }) {
+function Locations({ doctor }) {
return (
@@ -9,7 +9,7 @@ function Locations({ doctor, loading }) {
{doctor?.locations?.map((item, idx) => (
-
+
-
{doctor?.locations.length > idx + 1 && (
diff --git a/components/doctor/detailDoctor/index.js b/components/doctor/detailDoctor/index.js
index d861632..5492451 100644
--- a/components/doctor/detailDoctor/index.js
+++ b/components/doctor/detailDoctor/index.js
@@ -5,17 +5,17 @@ import AboutDcotor from "./cards/AboutDcotor";
import Comments from "./cards/comments";
import Locations from "./cards/locations";
-function DetailDoctor({ doctor, loading }) {
+function DetailDoctor({ doctor }) {
return (
);
}
diff --git a/components/doctor/index.js b/components/doctor/index.js
index a73b35a..82b8ae9 100644
--- a/components/doctor/index.js
+++ b/components/doctor/index.js
@@ -7,7 +7,7 @@ function DoctorPage({ doctor }) {
return (
-
+
متخصص {doctor?.expertise} {" >"}
@@ -20,8 +20,8 @@ function DoctorPage({ doctor }) {
);
diff --git a/services/response.js b/services/response.js
index 86d5237..c2406f9 100644
--- a/services/response.js
+++ b/services/response.js
@@ -30,4 +30,5 @@ export const request = {
});
},
getUserProfile: (uuid) => api.get(`/api/v1/user-profile/${uuid}`),
+
};