insomnia/app/components/RequestSwitcherModal.js

35 lines
808 B
JavaScript
Raw Normal View History

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;