()
| 648 | } |
| 649 | |
| 650 | getWeekHeaders() { |
| 651 | const { weekDayFormat } = this.props; |
| 652 | const { currentMonth } = this.state; |
| 653 | const firstDayOfWeek = this.getFirstDayOfWeek(); |
| 654 | |
| 655 | const weekHeaders = []; |
| 656 | for (let i = 0; i < 7; i += 1) { |
| 657 | weekHeaders.push(currentMonth.clone().day((i + firstDayOfWeek) % 7).format(weekDayFormat)); |
| 658 | } |
| 659 | |
| 660 | return weekHeaders; |
| 661 | } |
| 662 | |
| 663 | getFirstVisibleIndex() { |
| 664 | const { orientation } = this.props; |
no test coverage detected