diff --git a/src/components/RangeDatePicker/index.js b/src/components/RangeDatePicker/index.js index ec238e2..1c9dbc6 100644 --- a/src/components/RangeDatePicker/index.js +++ b/src/components/RangeDatePicker/index.js @@ -10,6 +10,7 @@ const RangeDatePicker = () => { return ( { +const SimpleDatePicker = (props) =>{ const [selectedDay, setSelectedDay] = useState(null); + const gotoToday = () =>{ + setSelectedDay(utils('fa').getToday()); + } + return(
{ onChange={setSelectedDay} inputPlaceholder="انتخاب تاریخ" shouldHighlightWeekends + renderFooter={() => } locale='fa' />