+
{this.props.title ? this.renderHeader() : null}
{this.props.children}
@@ -95,17 +95,23 @@ const Modal = React.createClass({
);
}
- let style = this.props.bsStyle;
+ let bsStyle = this.props.bsStyle;
let classes = {
'modal-header': true
};
- classes['bg-' + style] = style;
- classes['text-' + style] = style;
+ classes['bg-' + bsStyle] = bsStyle;
+ classes['text-' + bsStyle] = bsStyle;
let className = classNames(classes);
+ let style = {};
+ if (this.props.bsStyle) {
+ style.borderTopLeftRadius = 'inherit';
+ style.borderTopRightRadius = 'inherit';
+ }
+
return (
-
+
{closeButton}
{this.renderTitle()}