react-dates
Version:
A responsive and accessible date range picker component built with React
20 lines (15 loc) • 494 B
JSX
import React from 'react';
import { forbidExtraProps, or, childrenOfType } from 'airbnb-prop-types';
import CalendarDay from './CalendarDay';
import CustomizableCalendarDay from './CustomizableCalendarDay';
const propTypes = forbidExtraProps({
children: or([childrenOfType(CalendarDay), childrenOfType(CustomizableCalendarDay)]).isRequired,
});
export default function CalendarWeek({ children }) {
return (
<tr>
{children}
</tr>
);
}
CalendarWeek.propTypes = propTypes;