add first open time for appo item and change component data, remove work time in location, add loading on links in page doctor list, fix bug search city and state in clinics page
This commit is contained in:
@@ -7,7 +7,7 @@ import ModalOpenLocation from "@/app/component/openLocation";
|
||||
import RoutingWhiteC from "@/components/icons/RoutingWhiteC";
|
||||
import RoutingC from "@/components/icons/RoutingC";
|
||||
|
||||
function Item({ doctor, data }) {
|
||||
function Item({ data }) {
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const [open, setOpen] = useState(false);
|
||||
@@ -45,15 +45,13 @@ function Item({ doctor, data }) {
|
||||
<p className="text-[#525252] text-[16px] font-normal">
|
||||
آدرس: {data.address}
|
||||
</p>
|
||||
<p className="text-[#525252] text-[16px] font-normal">
|
||||
تلفن: {data.telephone}
|
||||
</p>
|
||||
<div className="flex w-full items-center justify-between">
|
||||
<p className="text-[#525252] text-[16px] font-normal">
|
||||
روزهای کاری: {doctor.hours_of_work}
|
||||
تلفن: {data.telephone}
|
||||
</p>
|
||||
<ModalOpenLocation
|
||||
open={open}
|
||||
data={data}
|
||||
setOpen={setOpen}
|
||||
handleClose={handleClose}
|
||||
>
|
||||
@@ -79,6 +77,7 @@ function Item({ doctor, data }) {
|
||||
|
||||
<ModalOpenLocation
|
||||
open={open}
|
||||
data={data}
|
||||
setOpen={setOpen}
|
||||
handleClose={handleClose}
|
||||
>
|
||||
|
||||
@@ -11,7 +11,7 @@ function Locations({ doctor }) {
|
||||
{doctor?.address?.map((item, idx) => (
|
||||
<CustomLoading key={idx} width="full" height={40}>
|
||||
<li className="w-full">
|
||||
<Item doctor={doctor} data={item} />
|
||||
<Item data={item} />
|
||||
{doctor?.address.length > idx + 1 && (
|
||||
<span className="w-full h-px bg-[#EFEFEF] block my-[12px] md:my-[14px] lg:my-[16px]"></span>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user