UNPKG

react-datepicker-ui

Version:
31 lines (28 loc) 625 B
import React from "react"; import Month from "./Month"; const MonthRow = ({ months, rowIndex, onMonthChangeHandler, currentYear, currentDate, }) => { return ( <tr className="month-picker-row"> {months.map((month, index) =>{ return ( <Month month={month} rowIndex={rowIndex} monthIndex={index} currentYear={currentYear} currentDate={currentDate} key={`MonthPickerMonth-${index}`} onMonthChangeHandler={onMonthChangeHandler} /> ); })} </tr> ); }; export default MonthRow