|
|
|
@ -19,22 +19,6 @@ import persian_fa from "react-date-object/locales/persian_fa"; |
|
|
|
|
// "جمعه",
|
|
|
|
|
// ];
|
|
|
|
|
|
|
|
|
|
function DisablePassedDaies({ direction, handleClick, disabled }) { |
|
|
|
|
return ( |
|
|
|
|
<i |
|
|
|
|
onClick={handleClick} |
|
|
|
|
style={{ |
|
|
|
|
padding: "0 10px", |
|
|
|
|
fontWeight: "bold", |
|
|
|
|
color: disabled ? "gray" : "blue", |
|
|
|
|
}} |
|
|
|
|
className={disabled ? "cursor-default" : "cursor-pointer"} |
|
|
|
|
> |
|
|
|
|
{direction === "right" ? ">" : "<"} |
|
|
|
|
</i> |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function CustomRangeInput({ openCalendar, value }) { |
|
|
|
|
useEffect(() => { |
|
|
|
|
openCalendar(); |
|
|
|
@ -77,10 +61,8 @@ const TestComponentNew = () => { |
|
|
|
|
onClose={() => false} |
|
|
|
|
arrow={false} |
|
|
|
|
minDate={new Date()} |
|
|
|
|
renderButton={<DisablePassedDaies />} |
|
|
|
|
render={<CustomRangeInput />} |
|
|
|
|
// weekDays={weekDays}
|
|
|
|
|
inputClass="custom-input" |
|
|
|
|
className="custom-calendar" |
|
|
|
|
style={{ |
|
|
|
|
width: "100%", |
|
|
|
|