remove unnecessary instance method

pull/10616/head
Iris Scholten 2018-03-07 18:17:29 -08:00
parent 82ff6c9c53
commit bb8b2008e1
1 changed files with 2 additions and 6 deletions

View File

@ -25,11 +25,6 @@ class GraphOptionsTimeFormat extends Component {
customFormat: false,
}
handleInputChange = value => {
const {onTimeFormatChange} = this.props
onTimeFormatChange(value)
}
handleChooseFormat = formatOption => {
if (formatOption.text === 'Custom') {
this.setState({customFormat: true})
@ -40,6 +35,7 @@ class GraphOptionsTimeFormat extends Component {
render() {
const {format, customFormat} = this.state
const {onTimeFormatChange} = this.props
const tipContent =
'For information on formatting, see http://momentjs.com/docs/#/parsing/string-format/'
@ -66,7 +62,7 @@ class GraphOptionsTimeFormat extends Component {
<InputClickToEdit
wrapperClass="column-controls-input "
value={format}
onUpdate={this.handleInputChange}
onUpdate={onTimeFormatChange}
placeholder="Enter custom format..."
appearAsNormalInput={true}
/>