mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
f90e4d7419
* Started on hotkeys * Tweaks * Changed tab color * Persist sidebarWidth to workspace * Tweaks * Switched to Mousetrap
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;
|