update src/components/TestComponentNew/index.js

master
mahdi andalib 3 years ago
parent 3eaa7db645
commit 172f2f2c8a
  1. 18
      src/components/TestComponentNew/index.js

@ -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%",

Loading…
Cancel
Save