import React, {Component, PropTypes} from 'react' import {connect} from 'react-redux' import Dropdown from '../components/base/Dropdown' import CurlExportModal from '../components/CurlExportModal' import PromptModal from '../components/PromptModal' import * as db from '../database' class RequestActionsDropdown extends Component { _promptUpdateName () { const {request} = this.props; PromptModal.show({ headerName: 'Rename Request', defaultValue: request.name }).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);