diff --git a/app/components/ContentTypeDropdown.js b/app/components/ContentTypeDropdown.js new file mode 100644 index 0000000000..13f9dbabe9 --- /dev/null +++ b/app/components/ContentTypeDropdown.js @@ -0,0 +1,31 @@ +import React, {Component, PropTypes} from 'react' + +import Dropdown from '../components/base/Dropdown' +import * as contentTypes from '../lib/contentTypes' + +class ContentTypeDropdown extends Component { + render () { + const {updateRequestContentType} = this.props; + + return ( + + + + + ) + } +} + +ContentTypeDropdown.propTypes = { + updateRequestContentType: PropTypes.func.isRequired +}; + +export default ContentTypeDropdown; diff --git a/app/components/RequestBodyEditor.js b/app/components/RequestBodyEditor.js index a3e7165933..bf3826a1dd 100644 --- a/app/components/RequestBodyEditor.js +++ b/app/components/RequestBodyEditor.js @@ -3,7 +3,7 @@ import Editor from './base/Editor' class RequestBodyEditor extends Component { render () { - const {body, contentType, requestId, onChange, className} = this.props; + const {body, contentType, onChange, className} = this.props; return ( - - - -
    - {/*
  • */} -
  • -
  • -
  • -
-
+ +