Archived
Merge branch 'playeronside' of https://bitbucket.org/sco44/tecnologiabanana into playeronside
This commit is contained in:
+9
-2
@@ -8,16 +8,20 @@ import VideoPlayer from './VideoPlayer'; // eslint-disable-line no-unused-vars
|
||||
import VideoInfo from './VideoInfo';
|
||||
import {ReactHeight} from 'react-height';
|
||||
import './css/App.css';
|
||||
import Related from './reccomenders/Related';
|
||||
|
||||
class App extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = {
|
||||
isInfoToggled: false,
|
||||
maxHeight: null,
|
||||
navHeight: null
|
||||
navHeight: null,
|
||||
isInfoToggled: true
|
||||
};
|
||||
}
|
||||
componentDidUpdate(prevProps,prevState,snapshot){
|
||||
document.location.reload(true);
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
@@ -41,7 +45,10 @@ class App extends React.Component {
|
||||
</div>
|
||||
<Collapse in={this.state.isInfoToggled}>
|
||||
<div className="pt-2" id="infovideo-collapse">
|
||||
<Switch>
|
||||
<Route path={["/video/:id", "/search/:query"]} component={VideoInfo} />
|
||||
<Route path={["/"]} component={VideoInfo}/>
|
||||
</Switch>
|
||||
</div>
|
||||
</Collapse>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user