2017-02-28 21:32:23 +00:00
|
|
|
import React, {PureComponent, PropTypes} from 'react';
|
2016-07-16 02:06:10 +00:00
|
|
|
import classnames from 'classnames';
|
2016-04-15 05:23:54 +00:00
|
|
|
|
2017-02-28 21:32:23 +00:00
|
|
|
class ModalBody extends PureComponent {
|
|
|
|
render () {
|
|
|
|
const {className, children, noScroll, ...props} = this.props;
|
|
|
|
return (
|
|
|
|
<div className={classnames('modal__body', {
|
|
|
|
'modal__body--no-scroll': noScroll
|
|
|
|
}, className)} {...props}>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2016-04-15 05:23:54 +00:00
|
|
|
|
2016-08-15 17:04:36 +00:00
|
|
|
ModalBody.propTypes = {
|
|
|
|
noScroll: PropTypes.bool
|
|
|
|
};
|
|
|
|
|
2016-04-15 05:23:54 +00:00
|
|
|
export default ModalBody;
|