import React, {PropTypes, Component} from 'react'; import {Dropdown, DropdownButton, DropdownItem} from '../base/dropdown'; import * as constants from '../../../common/constants'; class MethodDropdown extends Component { render () { const {method, onChange, right, ...extraProps} = this.props; return ( {method} {constants.HTTP_METHODS.map(method => ( {method} ))} ) } } MethodDropdown.propTypes = { onChange: PropTypes.func.isRequired, method: PropTypes.string.isRequired, }; export default MethodDropdown;