Anna Kurylo
2018-10-16 caf7fe1a309d8da984b077ff3c49d59a1c751065
src/TimeView.js
@@ -1,3 +1,4 @@
/* eslint-disable */
'use strict';
var React = require('react'),
@@ -28,7 +29,7 @@
      }
      var hours = date.format( 'H' );
      var daypart = false;
      if ( this.state !== null && this.props.timeFormat.toLowerCase().indexOf( ' a' ) !== -1 ) {
         if ( this.props.timeFormat.indexOf( ' A' ) !== -1 ) {
@@ -157,7 +158,7 @@
      var date = this.props.selectedDate || this.props.viewDate;
      return React.createElement('thead', { key: 'h' }, React.createElement('tr', {},
         React.createElement('th', { className: 'rdtSwitch', colSpan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )
         React.createElement('th', { className: 'rdtSwitch', colspan: 4, onClick: this.props.showView( 'days' ) }, date.format( this.props.dateFormat ) )
      ));
   },
@@ -181,9 +182,11 @@
            clearInterval( me.increaseTimer );
            me.props.setTime( type, me.state[ type ] );
            document.body.removeEventListener( 'mouseup', me.mouseUpListener );
            document.body.removeEventListener( 'touchend', me.mouseUpListener );
         };
         document.body.addEventListener( 'mouseup', me.mouseUpListener );
         document.body.addEventListener( 'touchend', me.mouseUpListener );
      };
   },
@@ -233,3 +236,4 @@
}));
module.exports = DateTimePickerTime;
/* eslint-enable */