Update to React 0.15 and fix bad names

This commit is contained in:
John Furrow
2016-05-16 22:07:52 -07:00
parent 4450b8b830
commit 7748660783
11 changed files with 32 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
import _ from 'lodash';
import classnames from 'classnames';
import createFragment from 'react-addons-create-fragment';
import React from 'react';
import CustomScrollbars from '../ui/CustomScrollbars';
@@ -46,8 +47,8 @@ export default class Modal extends React.Component {
'modal--tabs-in-header': !this.props.tabsInBody,
'modal--tabs-in-body': this.props.tabsInBody
}, this.props.classNames);
let modalBody = [this.props.content];
let modalHeader = [this.props.heading];
let modalBody = [createFragment({'modal-body': this.props.content})];
let modalHeader = [createFragment({'modal-header': this.props.heading})];
let headerClasses = classnames('modal__header', {
'has-tabs': this.props.tabs
});