|
|
@ -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" />]}
|
|
|
|
/> |
|
|
|
/> |
|
|
|