()
| 151 | } |
| 152 | |
| 153 | render() { |
| 154 | const { |
| 155 | dayAriaLabelFormat, |
| 156 | daySize, |
| 157 | focusedDate, |
| 158 | horizontalMonthPadding, |
| 159 | isFocused, |
| 160 | isVisible, |
| 161 | modifiers, |
| 162 | month, |
| 163 | monthFormat, |
| 164 | onDayClick, |
| 165 | onDayMouseEnter, |
| 166 | onDayMouseLeave, |
| 167 | onMonthSelect, |
| 168 | onYearSelect, |
| 169 | orientation, |
| 170 | phrases, |
| 171 | renderCalendarDay, |
| 172 | renderDayContents, |
| 173 | renderMonthElement, |
| 174 | renderMonthText, |
| 175 | styles, |
| 176 | verticalBorderSpacing, |
| 177 | } = this.props; |
| 178 | |
| 179 | const { weeks } = this.state; |
| 180 | const monthTitle = renderMonthText ? renderMonthText(month) : month.format(monthFormat); |
| 181 | |
| 182 | const verticalScrollable = orientation === VERTICAL_SCROLLABLE; |
| 183 | |
| 184 | return ( |
| 185 | <div |
| 186 | {...css( |
| 187 | styles.CalendarMonth, |
| 188 | { padding: `0 ${horizontalMonthPadding}px` }, |
| 189 | )} |
| 190 | data-visible={isVisible} |
| 191 | > |
| 192 | <div |
| 193 | ref={this.setCaptionRef} |
| 194 | {...css( |
| 195 | styles.CalendarMonth_caption, |
| 196 | verticalScrollable && styles.CalendarMonth_caption__verticalScrollable, |
| 197 | )} |
| 198 | > |
| 199 | {renderMonthElement ? ( |
| 200 | renderMonthElement({ |
| 201 | month, |
| 202 | onMonthSelect, |
| 203 | onYearSelect, |
| 204 | isVisible, |
| 205 | }) |
| 206 | ) : ( |
| 207 | <strong> |
| 208 | {monthTitle} |
| 209 | </strong> |
| 210 | )} |
nothing calls this directly
no test coverage detected