mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-30 19:08:48 +00:00
Main component dropped
This commit is contained in:
parent
2bf457993c
commit
4eaaa1bdfa
3 changed files with 0 additions and 39 deletions
|
|
@ -1,32 +0,0 @@
|
|||
import React, { Component } from 'react';
|
||||
import { NavBar } from 'stremio-common';
|
||||
import { Board, Discover, Library, Calendar, Search } from 'stremio-routes';
|
||||
import styles from './styles';
|
||||
|
||||
class Main extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div className={styles['root-container']}>
|
||||
<NavBar
|
||||
tabs={[
|
||||
{ icon: 'ic_board', label: 'Board', to: '/', exact: true, replace: true },
|
||||
{ icon: 'ic_discover', label: 'Discover', to: '/discover', replace: true },
|
||||
{ icon: 'ic_library', label: 'Library', to: '/library', replace: true },
|
||||
{ icon: 'ic_calendar', label: 'Calendar', to: '/calendar', replace: true }
|
||||
]}
|
||||
searchInput={true}
|
||||
userMenu={true}
|
||||
/>
|
||||
<Switch>
|
||||
<Route path={'/'} exact={true} component={Board} />
|
||||
<Route path={'/discover'} component={Discover} />
|
||||
<Route path={'/library'} component={Library} />
|
||||
<Route path={'/calendar'} component={Calendar} />
|
||||
<Route path={'/search'} component={Search} />
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Main;
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
import Main from './Main';
|
||||
|
||||
export default Main;
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
.root-container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
Loading…
Reference in a new issue