lint
This commit is contained in:
parent
d37db4a714
commit
928981c627
@ -150,7 +150,7 @@ class Calendar extends React.Component {
|
||||
return <div className="body">{rows}</div>
|
||||
}
|
||||
|
||||
updateStateDate (calendarDate) {
|
||||
updateStateDate(calendarDate) {
|
||||
const { start, end } = getStartAndEndMonth(calendarDate)
|
||||
this.setState({
|
||||
currentMonth: calendarDate,
|
||||
@ -160,12 +160,12 @@ class Calendar extends React.Component {
|
||||
this.props.loadMonthActivities(start, end)
|
||||
}
|
||||
|
||||
handleNextMonth () {
|
||||
handleNextMonth() {
|
||||
const calendarDate = dateFns.addMonths(this.state.currentMonth, 1)
|
||||
this.updateStateDate(calendarDate)
|
||||
}
|
||||
|
||||
handlePrevMonth () {
|
||||
handlePrevMonth() {
|
||||
const calendarDate = dateFns.subMonths(this.state.currentMonth, 1)
|
||||
this.updateStateDate(calendarDate)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user