mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
e2c72987e8
* Fixed duplication kve bug * Autocomplete sort of works now * Even better * Styled autocomplete dropdown * Minor tweaks * Autocomplete looking pretty spiffy * Bug fixes * Apply dropdown to all editors * Fixed key propagation when autocomplete open * Fixed some modals * Split up editor less * Some css improvements * Move filter help out of editor * Fixed drag-n-drop * Perfected autocomplete theme * "fixed" one-line-editor hint click bug * Better autocomplete and switch single line input on drag enter * Don't autocomplete on Tab * Better tag dnd * Add constants completion API * Autocomplete headers * Fixed tests
28 lines
576 B
JavaScript
28 lines
576 B
JavaScript
import React, {PureComponent, PropTypes} from 'react';
|
|
import classnames from 'classnames';
|
|
|
|
class ModalBody extends PureComponent {
|
|
render () {
|
|
const {className, children, noScroll, ...props} = this.props;
|
|
const classes = classnames(
|
|
className,
|
|
'modal__body',
|
|
{'modal__body--no-scroll': noScroll}
|
|
);
|
|
|
|
return (
|
|
<div className={classes} {...props}>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
ModalBody.propTypes = {
|
|
noScroll: PropTypes.bool,
|
|
className: PropTypes.string,
|
|
children: PropTypes.node
|
|
};
|
|
|
|
export default ModalBody;
|