Merge pull request #661 from Scratch-it/time-picker-theme
Ensure theme gets passed down to TimePicker child componentsold
commit
a6f7da7bea
|
@ -59,13 +59,13 @@ const factory = (TimePickerDialog, Input) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
const { value, format, inputClassName, onEscKeyDown, onOverlayClick, theme, ...others } = this.props;
|
const { value, format, inputClassName, onEscKeyDown, onOverlayClick, ...others } = this.props;
|
||||||
const formattedTime = value ? time.formatTime(value, format) : '';
|
const formattedTime = value ? time.formatTime(value, format) : '';
|
||||||
return (
|
return (
|
||||||
<div data-react-toolbox='time-picker'>
|
<div data-react-toolbox='time-picker'>
|
||||||
<Input
|
<Input
|
||||||
{...others}
|
{...others}
|
||||||
className={classnames(theme.input, {[inputClassName]: inputClassName })}
|
className={classnames(this.props.theme.input, {[inputClassName]: inputClassName })}
|
||||||
error={this.props.error}
|
error={this.props.error}
|
||||||
name={this.props.name}
|
name={this.props.name}
|
||||||
label={this.props.label}
|
label={this.props.label}
|
||||||
|
|
Loading…
Reference in New Issue