mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
35 lines
808 B
JavaScript
35 lines
808 B
JavaScript
|
import React, {Component, PropTypes} from 'react'
|
||
|
|
||
|
import Modal from './base/Modal'
|
||
|
import ModalBody from './base/ModalBody'
|
||
|
import ModalHeader from './base/ModalHeader'
|
||
|
import ModalFooter from './base/ModalFooter'
|
||
|
import {MODAL_REQUEST_SWITCHER} from '../lib/constants'
|
||
|
|
||
|
class RequestSwitcherModal extends Component {
|
||
|
toggle() {
|
||
|
this.refs.modal.toggle();
|
||
|
}
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<Modal ref="modal" {...this.props}>
|
||
|
<ModalHeader>Switch Request</ModalHeader>
|
||
|
<ModalBody className="pad">
|
||
|
<p>DO IT</p>
|
||
|
</ModalBody>
|
||
|
<ModalFooter className="text-right">
|
||
|
</ModalFooter>
|
||
|
</Modal>
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
RequestSwitcherModal.propTypes = {};
|
||
|
|
||
|
RequestSwitcherModal.defaultProps = {
|
||
|
id: MODAL_REQUEST_SWITCHER
|
||
|
};
|
||
|
|
||
|
export default RequestSwitcherModal;
|