2018-11-08 18:22:06 +01:00
|
|
|
import React, { Component } from 'react';
|
2018-12-15 00:24:41 +01:00
|
|
|
import { Row, Col, Button, Collapse } from 'react-bootstrap';
|
2019-01-20 18:45:00 +01:00
|
|
|
import { Switch, Route } from 'react-router';
|
2019-01-21 15:55:25 +01:00
|
|
|
import Random from '../reccomenders/Random';
|
2019-01-20 18:45:00 +01:00
|
|
|
import Related from '../reccomenders/Related';
|
2019-01-30 21:45:29 +01:00
|
|
|
import Search from '../reccomenders/Search';
|
2019-02-11 15:38:36 +01:00
|
|
|
import fvitali from '../reccomenders/fvitali';
|
2019-02-12 17:38:34 +01:00
|
|
|
import popGlobaleAssoluta from '../reccomenders/popGlobaleAssoluta';
|
2019-02-14 17:13:00 +01:00
|
|
|
import Recent from '../reccomenders/Recent';
|
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) {
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// 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-11 18:27:21 +01:00
|
|
|
<Row>
|
2019-01-20 18:45:00 +01:00
|
|
|
<Switch>
|
2019-02-11 15:38:36 +01:00
|
|
|
<Route path='/video/:id/vitali' component={fvitali} />
|
2019-01-30 21:45:29 +01:00
|
|
|
<Route path='/search/:query' component={Search} />
|
2019-01-21 15:55:25 +01:00
|
|
|
<Route path='/video/:id/random' component={Random} />
|
2019-02-12 17:38:34 +01:00
|
|
|
<Route path='/video/:id/popGlobalAssoluta' component={popGlobaleAssoluta} />
|
2019-02-14 17:13:00 +01:00
|
|
|
<Route path='/video/:id/recent' component={Recent} />
|
|
|
|
|
|
2019-01-21 15:55:25 +01:00
|
|
|
{/* lasciare questo per ultimo */}
|
|
|
|
|
<Route component={Related} />
|
2019-01-20 18:45:00 +01:00
|
|
|
</Switch>
|
2019-02-11 18:27:21 +01:00
|
|
|
</Row>
|
2018-12-15 00:24:41 +01:00
|
|
|
</React.Fragment>
|
2018-11-08 18:22:06 +01:00
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Suggestion;
|