update src/components/Datepicker/Calender/index.js and src/components/Datepicker/CalenderList/index.js

master
mahdi 2 years ago
parent 104a0208d3
commit dbe983ff95
  1. 8
      src/components/Datepicker/Calender/index.js
  2. 15
      src/components/Datepicker/CalenderList/index.js

@ -21,14 +21,6 @@ const Calender = ({ minDate, maxDate }) => {
<div className="calender-list w-[1050px] h-[1000px]"> <div className="calender-list w-[1050px] h-[1000px]">
<Calendar <Calendar
numberOfMonths={12} numberOfMonths={12}
// currentDate={
// new Date({
// calendar: persian,
// year: 1399,
// month: 12,
// day: 1,
// })
// }
disableMonthPicker disableMonthPicker
disableYearPicker disableYearPicker
onChange={setDate} onChange={setDate}

@ -35,18 +35,9 @@ const CalenderList = ({ buttons, leftArrow, rightArrow }) => {
</div> </div>
{/* ? calender list */} {/* ? calender list */}
<div className="flex"> <div className="flex">
<Calender minDate="1401/01/01" maxDate="1401/01/31" /> <Calender
{/* <Calender minDate="1401/02/01" maxDate="1401/02/31" /> // minDate="1401/01/01" maxDate="1401/01/31"
<Calender minDate="1401/03/01" maxDate="1401/03/31" /> />
<Calender minDate="1401/04/01" maxDate="1401/04/31" />
<Calender minDate="1401/05/01" maxDate="1401/05/31" />
<Calender minDate="1401/06/01" maxDate="1401/06/31" />
<Calender minDate="1401/07/01" maxDate="1401/07/30" />
<Calender minDate="1401/08/01" maxDate="1401/08/30" />
<Calender minDate="1401/09/01" maxDate="1401/09/30" />
<Calender minDate="1401/10/01" maxDate="1401/10/30" />
<Calender minDate="1401/11/01" maxDate="1401/11/30" />
<Calender minDate="1401/12/01" maxDate="1401/12/30" /> */}
</div> </div>
</div> </div>
); );

Loading…
Cancel
Save