diff --git a/src/DateContentRow.js b/src/DateContentRow.js index d00333086..b0e23651c 100644 --- a/src/DateContentRow.js +++ b/src/DateContentRow.js @@ -153,7 +153,7 @@ class DateContentRow extends React.Component { } return ( -
+
{renderHeader && (
diff --git a/src/DateHeader.js b/src/DateHeader.js index dd2b88d35..13aba6c63 100644 --- a/src/DateHeader.js +++ b/src/DateHeader.js @@ -7,7 +7,7 @@ const DateHeader = ({ label, drilldownView, onDrillDown }) => { } return ( - + {label} ) diff --git a/src/Header.js b/src/Header.js index 52ce4b364..9c0eed6e5 100644 --- a/src/Header.js +++ b/src/Header.js @@ -2,7 +2,11 @@ import PropTypes from 'prop-types' import React from 'react' const Header = ({ label }) => { - return {label} + return ( + + {label} + + ) } Header.propTypes = { diff --git a/src/Month.js b/src/Month.js index 70cc667c2..bdbb691c0 100644 --- a/src/Month.js +++ b/src/Month.js @@ -80,8 +80,12 @@ class MonthView extends React.Component { this._weekCount = weeks.length return ( -
-
+
+
{this.renderHeaders(weeks[0])}
{weeks.map(this.renderWeek)} @@ -160,6 +164,7 @@ class MonthView extends React.Component { isOffRange && 'rbc-off-range', isCurrent && 'rbc-current' )} + role="cell" >