Upgrade to React 16 (#5119)
* Upgrade to React 16.0.0 * Disable some uncritical tests while chai-enzyme remains incompatible
This commit is contained in:
parent
0060f98847
commit
ebb8c89207
11 changed files with 722 additions and 423 deletions
|
@ -135,7 +135,7 @@ export default class ColumnHeader extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<div className={wrapperClassName}>
|
||||
<h1 tabIndex={focusable && '0'} role='button' className={buttonClassName} aria-label={title} onClick={this.handleTitleClick}>
|
||||
<h1 tabIndex={focusable ? 0 : null} role='button' className={buttonClassName} aria-label={title} onClick={this.handleTitleClick}>
|
||||
<i className={`fa fa-fw fa-${icon} column-header__icon`} />
|
||||
{title}
|
||||
|
||||
|
@ -145,7 +145,7 @@ export default class ColumnHeader extends React.PureComponent {
|
|||
</div>
|
||||
</h1>
|
||||
|
||||
<div className={collapsibleClassName} tabIndex={collapsed && -1} onTransitionEnd={this.handleTransitionEnd}>
|
||||
<div className={collapsibleClassName} tabIndex={collapsed ? -1 : null} onTransitionEnd={this.handleTransitionEnd}>
|
||||
<div className='column-header__collapsible-inner'>
|
||||
{(!collapsed || animating) && collapsedContent}
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@ import configureStore from '../store/configureStore';
|
|||
import { showOnboardingOnce } from '../actions/onboarding';
|
||||
import BrowserRouter from 'react-router-dom/BrowserRouter';
|
||||
import Route from 'react-router-dom/Route';
|
||||
import ScrollContext from 'react-router-scroll/lib/ScrollBehaviorContext';
|
||||
import { ScrollContext } from 'react-router-scroll';
|
||||
import UI from '../features/ui';
|
||||
import { hydrateStore } from '../actions/store';
|
||||
import { connectUserStream } from '../actions/streaming';
|
||||
|
|
|
@ -48,7 +48,7 @@ const mapStateToProps = state => ({
|
|||
|
||||
@connect(mapStateToProps)
|
||||
@withRouter
|
||||
export default class UI extends React.PureComponent {
|
||||
export default class UI extends React.Component {
|
||||
|
||||
static contextTypes = {
|
||||
router: PropTypes.object.isRequired,
|
||||
|
|
|
@ -14,8 +14,8 @@ if (process.env.NODE_ENV === 'development') {
|
|||
}
|
||||
marky = require('marky');
|
||||
// allows us to easily do e.g. ReactPerf.printWasted() while debugging
|
||||
window.ReactPerf = require('react-addons-perf');
|
||||
window.ReactPerf.start();
|
||||
//window.ReactPerf = require('react-addons-perf');
|
||||
//window.ReactPerf.start();
|
||||
}
|
||||
|
||||
export function start(name) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue