File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff 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' ) } ) ;
You can’t perform that action at this time.
0 commit comments