diff --git a/src/components/Notes.js b/src/components/Notes.js index 77e8bd8df..e49851126 100644 --- a/src/components/Notes.js +++ b/src/components/Notes.js @@ -57,9 +57,10 @@ export default class Notes extends React.Component { {children || - notes.map(note => + notes.map((note, i) => () => { this.setState({ month }); } - setYear(year) { + setYear = year => () => { this.setState({ year }); } - render() { - const { props, state } = this; + renderMonths = () => MONTHS.map(month => ( +