insomnia/app/ui/components/base/modal-body.js
Gregory Schier e2c72987e8 Autocomplete for variables and tags (#112)
* 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
2017-03-11 16:31:23 -08:00

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;