X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fmodule%2FPanel.jsx;h=f04115823a9a914fe878847034fd07125ba14f54;hb=63541ed7b1c9ad58348ea86c97f3e8b31830535b;hp=4220da86f72a232749f9e9eb56f2dc430748f9dd;hpb=6c6cb0fbfc159cff7ebd1c7ef9d7f5a547e57e61;p=github%2Ffretlink%2Ftime-picker.git diff --git a/src/module/Panel.jsx b/src/module/Panel.jsx index 4220da8..f041158 100644 --- a/src/module/Panel.jsx +++ b/src/module/Panel.jsx @@ -72,20 +72,6 @@ const Panel = React.createClass({ this.props.onClear(); }, - getPlaceholder(placeholder) { - if (placeholder) { - return placeholder; - } - - const { locale } = this.props; - if (!this.showHour) { - return locale.placeholdermmss; - } else if (!this.showSecond) { - return locale.placeholderHHmm; - } - return locale.placeholderHHmmss; - }, - showHour: true, showSecond: true, @@ -102,7 +88,7 @@ const Panel = React.createClass({ locale={locale} value={value} formatter={this.getFormatter()} - placeholder={this.getPlaceholder(placeholder)} + placeholder={placeholder} hourOptions={hourOptions} minuteOptions={minuteOptions} secondOptions={secondOptions}