Archived
Modificato reccomender random
This commit is contained in:
+2
-4
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user