update App.js, src/components/DateRangePicker/index.js and src/components/TestComponentNew/index.js

master
mahdi andalib 2 years ago
parent 07a3b6e0f8
commit 6b4a0f2eb4
  1. 3
      src/components/DateRangePicker/index.js

@ -37,7 +37,7 @@ function CustomRangeInput({ openCalendar, value }) {
// let from = value[0] || ""; // let from = value[0] || "";
// let to = value[1] || ""; // let to = value[1] || "";
// value = from && to ? "از " + from + "، تا " + to": from value = from && to ? "از " + from + "، تا " + to": from
useEffect(() => { useEffect(() => {
openCalendar(); openCalendar();
}, []); }, []);
@ -64,6 +64,7 @@ const DateRangePicker = () => {
minDate={new Date()} minDate={new Date()}
renderButton={<CustomButton />} renderButton={<CustomButton />}
render={<CustomRangeInput />} render={<CustomRangeInput />}
onClose={() => false}
calendarPosition="bottom-right" calendarPosition="bottom-right"
// plugins={[<DatePanel position="bottom" />]} // plugins={[<DatePanel position="bottom" />]}
/> />

Loading…
Cancel
Save