diff --git a/src/Pages/BookingScreen/Components/OtherConponents/Reprint/ReprintPDFDataShare.jsx b/src/Pages/BookingScreen/Components/OtherConponents/Reprint/ReprintPDFDataShare.jsx index d36f282..fb98ef1 100644 --- a/src/Pages/BookingScreen/Components/OtherConponents/Reprint/ReprintPDFDataShare.jsx +++ b/src/Pages/BookingScreen/Components/OtherConponents/Reprint/ReprintPDFDataShare.jsx @@ -12,6 +12,7 @@ import { uploadImage } from "../../../../../Features/upload/upload"; import { SelfBookingEmailSendLink } from "../../../../../Features/ConfigMasterPage/ConfigMasterPage"; import { Messages } from "../../../../../Components/Notifications/Messages"; const { RangePicker } = DatePicker; +import dayjs from "dayjs"; const uploadApiUrl = import.meta.env.ENV_IMAGE_UPLOAD_API_URL; const ReprintPDFDataShare = ({ printDatas, printerTemplateStyle, SettingDataSelector, open = false, onClose = () => { } }) => { @@ -40,7 +41,9 @@ const ReprintPDFDataShare = ({ printDatas, printerTemplateStyle, SettingDataSele fetchData(dateStrings); } }; - +const disabledDate = (current) => { + return current && current > dayjs().endOf("day"); +}; const fetchData = async (dates = dateStrings) => { setIsFetching(true); try { @@ -184,8 +187,9 @@ Thank you for choosing us!`;