From c663e3576044792dfa1c71af4c7fc18ffaa7893b Mon Sep 17 00:00:00 2001 From: Ty Date: Wed, 21 Oct 2015 10:03:25 +0100 Subject: [PATCH] typo correction and using const --- src/time-picker/clock.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/time-picker/clock.jsx b/src/time-picker/clock.jsx index acfd1b88f2b668..60bfd9d1fafbe3 100644 --- a/src/time-picker/clock.jsx +++ b/src/time-picker/clock.jsx @@ -151,14 +151,14 @@ const Clock = React.createClass({ selectedTime: time, }); - let { onChangeHours } = this.props; + const { onChangeHours } = this.props; if (finished) { setTimeout(() => { this.setState({ mode: 'minute', }); - if (typeof(onChangeHours === 'function')) { + if (typeof(onChangeHours) === 'function') { onChangeHours(time); } }, 100); @@ -172,8 +172,8 @@ const Clock = React.createClass({ selectedTime: time, }); - let { onChangeMinutes } = this.props; - if (typeof(onChangeMinutes === 'function')) { + const { onChangeMinutes } = this.props; + if (typeof(onChangeMinutes) === 'function') { onChangeMinutes(time); } },