File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 88 < link href ="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700 " rel ="stylesheet " type ="text/css ">
99 < link href ="https://unpkg.com/prismjs@1/themes/prism-tomorrow.css " rel ="stylesheet " type ="text/css ">
1010 < link href ="https://unpkg.com/normalize.css@7/normalize.css " rel ="stylesheet " type ="text/css ">
11- < link href =". /lib/themes/default/index.css " rel ="stylesheet " type ="text/css ">
11+ < link href ="https://unpkg.com/spectacle /lib/themes/default/index.css " rel ="stylesheet " type ="text/css ">
1212</ head >
1313< body >
1414 < div id ="root "> </ div >
Original file line number Diff line number Diff line change 1+ /* eslint-disable react/no-did-mount-set-state */
2+
13import React , { Component } from 'react' ;
24import PropTypes from 'prop-types' ;
35import { findDOMNode } from 'react-dom' ;
@@ -10,6 +12,17 @@ class Appear extends Component {
1012 active : false ,
1113 } ;
1214
15+ componentDidMount ( ) {
16+ const shouldDisableAnimation =
17+ this . props . route . params . indexOf ( 'export' ) !== - 1 ||
18+ this . props . route . params . indexOf ( 'overview' ) !== - 1 ;
19+
20+ if ( shouldDisableAnimation ) {
21+ this . setState ( { active : true } ) ;
22+ return ;
23+ }
24+ }
25+
1326 componentWillReceiveProps ( nextProps ) {
1427 const state = nextProps . fragment ;
1528 const slide = this . props . route . slide ;
@@ -19,8 +32,8 @@ class Appear extends Component {
1932 } ) ;
2033
2134 const shouldDisableAnimation =
22- this . props . route . params . indexOf ( 'export' ) !== - 1 ||
23- this . props . route . params . indexOf ( 'overview' ) !== - 1 ;
35+ nextProps . route . params . indexOf ( 'export' ) !== - 1 ||
36+ nextProps . route . params . indexOf ( 'overview' ) !== - 1 ;
2437
2538 if ( shouldDisableAnimation ) {
2639 this . setState ( { active : true } ) ;
Original file line number Diff line number Diff line change @@ -659,7 +659,7 @@ export default class Manager extends Component {
659659 : '' }
660660
661661 { this . props . globalStyles &&
662- < Style rules = { Object . assign ( this . context . styles . global , globals ) } /> }
662+ < Style rules = { Object . assign ( { } , this . context . styles . global , globals ) } /> }
663663 </ div >
664664 ) ;
665665 }
You can’t perform that action at this time.
0 commit comments