Skip to content

Commit 7e1e6cd

Browse files
committed
Style fix
1 parent c77757f commit 7e1e6cd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/index.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -248,18 +248,16 @@ export default class Dates extends Component {
248248
currentDate: moment(),
249249
focusedMonth: moment().startOf('month')
250250
}
251-
props: DatesType;
252251

253252
componentWillMount() {
254-
const currentDate = moment(this.props.date)
255-
const focusedMonth = moment(this.props.date).startOf('month')
253+
const currentDate = moment(this.props.date);
254+
const focusedMonth = moment(this.props.date).startOf('month');
256255

257-
this.setState({
258-
currentDate: currentDate,
259-
focusedMonth: focusedMonth
260-
})
256+
this.setState({ currentDate, focusedMonth });
261257
}
262258

259+
props: DatesType;
260+
263261
render() {
264262
const previousMonth = () => {
265263
this.setState({ focusedMonth: this.state.focusedMonth.add(-1, 'M') });

0 commit comments

Comments
 (0)