refactor: update appointment components to fetch and handle doctor data and disabled dates
This commit is contained in:
@@ -2,7 +2,7 @@ import { useState } from "react";
|
||||
import Hour from "./hour";
|
||||
import Time from "./Time";
|
||||
|
||||
function Date({ doctor, setStep }) {
|
||||
function Date({ doctor, setStep, disabledDates }) {
|
||||
const [locateVisit, setLocateVisit] = useState(true);
|
||||
const [date, setDate] = useState();
|
||||
|
||||
@@ -16,6 +16,7 @@ function Date({ doctor, setStep }) {
|
||||
setDate={setDate}
|
||||
locateVisit={locateVisit}
|
||||
isStep={doctor?.multiwork ? locateVisit : true}
|
||||
disabledDates={disabledDates}
|
||||
/>
|
||||
<Hour
|
||||
isStep={doctor?.multiwork ? locateVisit : true}
|
||||
|
||||
Reference in New Issue
Block a user