diff --git a/src/components/DateRangePicker/index.js b/src/components/DateRangePicker/index.js index 969f0bf..90ea8e6 100644 --- a/src/components/DateRangePicker/index.js +++ b/src/components/DateRangePicker/index.js @@ -1,6 +1,5 @@ import React from "react"; -import DatePicker from "react-multi-date-picker"; import { Calendar } from "react-multi-date-picker"; import persian from "react-date-object/calendars/persian"; @@ -33,16 +32,33 @@ function CustomButton({ direction, handleClick, disabled }) { ); } +// function CustomRangeInput({openCalendar, value}) { +// let from = value[0] || "" +// let to = value[1] || "" + +// value = from && to ? "از " + from + "، تا " + to": from + +// return ( +// +// ) +// } + const DateRangePicker = () => { return ( <> arrow} range calendar={persian} locale={persian_fa} weekDays={weekDays} minDate={new Date()} renderButton={} + // render={} calendarPosition="bottom-right" plugins={[]} />