Modificato reccomender random

This commit is contained in:
Giampiero Galeazzi
2018-12-14 18:21:55 +01:00
parent 32f81fda8d
commit ec86e9b706
4 changed files with 36 additions and 30 deletions
+2 -4
View File
@@ -8,6 +8,7 @@ import VideoPlayer from './VideoPlayer'; // eslint-disable-line no-unused-vars
import VideoInfo from './VideoInfo';
import './css/App.css';
import Related from './reccomenders/Related';
import Random from './reccomenders/Random';
class App extends React.Component {
constructor(props) {
@@ -16,9 +17,6 @@ class App extends React.Component {
isInfoToggled: true
};
}
componentDidUpdate(prevProps,prevState,snapshot){
document.location.reload(true);
}
render() {
return (
@@ -53,7 +51,7 @@ class App extends React.Component {
<Row className='downSection'>
<Switch>
{/* */}
<Route exact path='/' component={VideoList} />
<Route exact path='/' component={Random} />
<Route render={() => <div>URL not found</div>} />
</Switch>
</Row>