import React, {PropTypes, PureComponent} from 'react'; import autobind from 'autobind-decorator'; import KeyValueEditor from '../../key-value-editor/editor'; import {trackEvent} from '../../../../analytics/index'; @autobind class UrlEncodedEditor extends PureComponent { _handleTrackToggle (pair) { trackEvent( 'Url Encoded Editor', 'Toggle', pair.disabled ? 'Disable' : 'Enable' ); } _handleTrackCreate () { trackEvent('Url Encoded Editor', 'Create'); } _handleTrackDelete () { trackEvent('Url Encoded Editor', 'Delete'); } render () { const { parameters, onChange, handleRender, handleGetRenderContext } = this.props; return (
); } } UrlEncodedEditor.propTypes = { // Required onChange: PropTypes.func.isRequired, parameters: PropTypes.arrayOf(PropTypes.object).isRequired, handleRender: PropTypes.func.isRequired, handleGetRenderContext: PropTypes.func.isRequired }; export default UrlEncodedEditor;