2018-11-08 18:22:06 +01:00
|
|
|
import React, { Component } from 'react';
|
2019-02-19 01:16:25 +01:00
|
|
|
import { Row, Col } from 'react-bootstrap';
|
2019-01-20 18:45:00 +01:00
|
|
|
import { Switch, Route } from 'react-router';
|
2019-02-17 16:20:16 +01:00
|
|
|
import Random from './reccomenders/Random';
|
|
|
|
|
import Related from './reccomenders/Related';
|
|
|
|
|
import Search from './reccomenders/Search';
|
|
|
|
|
import fvitali from './reccomenders/fvitali';
|
|
|
|
|
import popGlobaleAssoluta from './reccomenders/popGlobaleAssoluta';
|
|
|
|
|
import Recent from './reccomenders/Recent';
|
2019-02-19 23:28:59 +01:00
|
|
|
import similarityArtist from './reccomenders/similarityArtist';
|
|
|
|
|
import popLocaleAss from './reccomenders/popLocaleAss';
|
2019-01-30 21:45:29 +01:00
|
|
|
|
2018-11-08 18:22:06 +01:00
|
|
|
// and so on..
|
|
|
|
|
|
|
|
|
|
class Suggestion extends Component {
|
|
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// static getDerivedStateFromProps(nextProps, prevState) {
|
2019-02-19 01:16:25 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// }
|
2019-02-19 01:16:25 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// componentDidMount() {
|
2018-11-08 18:22:06 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// }
|
2018-11-08 18:22:06 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// shouldComponentUpdate(nextProps, nextState) {
|
2018-11-08 18:22:06 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// }
|
2018-11-08 18:22:06 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// componentDidUpdate(prevProps, prevState) {
|
2018-11-08 18:22:06 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// }
|
2018-11-08 18:22:06 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// componentWillUnmount() {
|
2018-11-08 18:22:06 +01:00
|
|
|
|
2019-01-14 19:23:29 +01:00
|
|
|
// }
|
2018-11-08 18:22:06 +01:00
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
return (
|
2018-12-15 00:24:41 +01:00
|
|
|
<React.Fragment>
|
2019-02-19 01:16:25 +01:00
|
|
|
<Switch>
|
|
|
|
|
<Route path='/video/:id/vitali' component={fvitali} />
|
|
|
|
|
<Route path='/search/:query' component={Search} />
|
|
|
|
|
<Route path='/video/:id/random' component={Random} />
|
|
|
|
|
<Route path='/video/:id/popGlobalAssoluta' component={popGlobaleAssoluta} />
|
2019-02-19 23:28:59 +01:00
|
|
|
<Route path='/video/:id/popLocaleAss' component={popLocaleAss} />
|
2019-02-19 01:16:25 +01:00
|
|
|
<Route path='/video/:id/recent' component={Recent} />
|
2019-02-19 23:28:59 +01:00
|
|
|
<Route path='/video/:id/similarityArtist' component={similarityArtist} />
|
2019-02-14 17:13:00 +01:00
|
|
|
|
2019-02-19 01:16:25 +01:00
|
|
|
{/* lasciare questo per ultimo */}
|
|
|
|
|
<Route component={Related} />
|
|
|
|
|
</Switch>
|
2018-12-15 00:24:41 +01:00
|
|
|
</React.Fragment>
|
2018-11-08 18:22:06 +01:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Suggestion;
|