mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-11 22:40:27 +00:00
Calendar route added
This commit is contained in:
parent
72a11f1999
commit
4a755af113
1 changed files with 5 additions and 3 deletions
|
|
@ -3,9 +3,10 @@ import { BrowserRouter, Switch, Route, Redirect } from 'react-router-dom';
|
|||
import NavBar from './NavBar';
|
||||
import styles from './styles';
|
||||
|
||||
const Board = () => <div style={{ backgroundColor: 'pink', paddingTop: 40 }}>You're on the Board Tab</div>;
|
||||
const Discover = () => <div style={{ backgroundColor: 'pink', paddingTop: 40 }}>You're on the Discover Tab</div>;
|
||||
const Library = () => <div style={{ backgroundColor: 'pink', paddingTop: 40 }}>You're on the Library Tab</div>;
|
||||
const Board = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Board Tab</div>;
|
||||
const Discover = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Discover Tab</div>;
|
||||
const Library = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Library Tab</div>;
|
||||
const Calendar = () => <div style={{ color: 'pink', paddingTop: 40 }}>You're on the Calendar Tab</div>;
|
||||
|
||||
class App extends Component {
|
||||
render() {
|
||||
|
|
@ -17,6 +18,7 @@ class App extends Component {
|
|||
<Route path={'/'} exact={true} component={Board} />
|
||||
<Route path={'/discover'} component={Discover} />
|
||||
<Route path={'/library'} component={Library} />
|
||||
<Route path={'/calendar'} component={Calendar} />
|
||||
<Redirect to={'/'} />
|
||||
</Switch>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue