import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux' import Dropdown from '../components/base/Dropdown'; import DropdownHint from '../components/base/DropdownHint'; import CurlExportModal from '../components/modals/CurlExportModal'; import PromptModal from '../components/modals/PromptModal'; import * as db from '../database'; class RequestActionsDropdown extends Component { _promptUpdateName () { const {request} = this.props; PromptModal.show({ headerName: 'Rename Request', defaultValue: request.name, hint: 'also rename requests by double clicking in the sidebar' }).then(name => { db.requestUpdate(request, {name}); }) } render () { const {request, ...other} = this.props; return ( ) } } RequestActionsDropdown.propTypes = { request: PropTypes.object.isRequired }; function mapStateToProps (state) { return {}; } function mapDispatchToProps (dispatch) { return {} } export default connect( mapStateToProps, mapDispatchToProps )(RequestActionsDropdown);