From 5423edb11fac7f8ed5d35ba739878ee4435fa5af Mon Sep 17 00:00:00 2001 From: Antony Shaleynikov Date: Mon, 6 Mar 2017 17:56:48 +0300 Subject: Fixing formatting in 12hours example --- examples/12hours.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/12hours.js b/examples/12hours.js index 16e428d..72d6950 100644 --- a/examples/12hours.js +++ b/examples/12hours.js @@ -9,22 +9,21 @@ import moment from 'moment'; import TimePicker from 'rc-time-picker'; -const showSecond = false; -const str = showSecond ? 'h:mm a' : 'h:mm a'; +const format = 'h:mm a'; const now = moment().hour(0).minute(0); function onChange(value) { - console.log(value && value.format(str)); + console.log(value && value.format(format)); } ReactDom.render( , document.getElementById('__react-content') -- cgit v1.2.3