import React, {PropTypes, PureComponent} from 'react'; import autobind from 'autobind-decorator'; import OneLineEditor from '../../codemirror/one-line-editor'; import * as misc from '../../../../common/misc'; @autobind class BearerAuth extends PureComponent { constructor (props) { super(props); this._handleChangeProperty = misc.debounce(this._handleChangeProperty, 500); } _handleChange (token) { const {request} = this.props; const authentication = Object.assign({}, request.authentication, {token}); this.props.onChange(authentication); } render () { const {request, handleRender, handleGetRenderContext} = this.props; const {token} = request.authentication; return (