@@ -124,7 +124,6 @@ class CalendarList extends Component<CalendarListProps, State> {
124124
125125 constructor ( props : CalendarListProps ) {
126126 super ( props ) ;
127- // console.log('ctor');
128127 this . style = styleConstructor ( props . theme ) ;
129128
130129 const rows = [ ] ;
@@ -158,24 +157,16 @@ class CalendarList extends Component<CalendarListProps, State> {
158157 } ;
159158 }
160159
161- componentDidUpdate ( prevProps : CalendarListProps , prevState : State ) {
160+ componentDidUpdate ( prevProps : CalendarListProps ) {
162161 const prevCurrent = parseDate ( prevProps . current ) ;
163162 const current = parseDate ( this . props . current ) ;
164163
165164 if ( current && prevCurrent && current . getTime ( ) !== prevCurrent . getTime ( ) ) {
166165 this . scrollToMonth ( current ) ;
167166 }
168-
169- // Object.entries(this.props).forEach(([key, val]) =>
170- // prevProps[key] !== val && console.log(`CalendarList Prop '${key}' changed to ${val}`)
171- // );
172- // Object.entries(this.state).forEach(([key, val]) =>
173- // prevState[key] !== val && console.log(`CalendarList State '${key}' changed to ${val}`)
174- // );
175167 }
176168
177169 static getDerivedStateFromProps ( _ : CalendarListProps , prevState : State ) {
178- // console.log('derived state');
179170 const rowClone = prevState . rows ;
180171 const newRows = [ ] ;
181172 for ( let i = 0 ; i < rowClone . length ; i ++ ) {
@@ -257,7 +248,6 @@ class CalendarList extends Component<CalendarListProps, State> {
257248 }
258249
259250 onViewableItemsChanged = ( { viewableItems} : any ) => {
260- // console.log('onViewableItemsChanged');
261251 function rowIsCloseToViewable ( index : number , distance : number ) {
262252 for ( let i = 0 ; i < viewableItems . length ; i ++ ) {
263253 if ( Math . abs ( index - parseInt ( viewableItems [ i ] . index ) ) <= distance ) {
0 commit comments