This repository has been archived on 2019-10-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tecnologiabanana/src/App.js
T
2018-11-15 18:33:17 +01:00

37 lines
1.1 KiB
JavaScript

import React from 'react';
import { Route, Switch, Link } from 'react-router-dom'; // eslint-disable-line no-unused-vars
import 'bootstrap/dist/css/bootstrap.css'; // eslint-disable-line no-unused-vars
import { Row, Col } from 'react-bootstrap'; // eslint-disable-line no-unused-vars
import VideoList from './VideoList'; // eslint-disable-line no-unused-vars
import TopBar from './TopBar'; // eslint-disable-line no-unused-vars
import VideoPlayer from './VideoPlayer'; // eslint-disable-line no-unused-vars
import VideoInfo from './VideoInfo';
import './App.css';
class App extends React.Component {
render() {
return (
<React.Fragment>
<TopBar />
<Row className="justify-content-center bg-black">
<Col xs="12" sm="6">
<Switch>
<Route path="/video/:id" component={VideoPlayer} />
<Route component={VideoPlayer} />
{/* <Route path='/search/:q/:token?' component={Search} /> */}
</Switch>
</Col>
</Row>
<Row>
<Switch>
<Route path="/video/:id" component={VideoInfo} />
<Route exact path='/' component={VideoList} />
</Switch>
</Row>
</React.Fragment>
);
}
}
export default App;