Main component dropped

This commit is contained in:
NikolaBorislavovHristov 2019-05-12 22:27:50 +03:00
parent 2bf457993c
commit 4eaaa1bdfa
3 changed files with 0 additions and 39 deletions

View file

@ -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;

View file

@ -1,3 +0,0 @@
import Main from './Main';
export default Main;

View file

@ -1,4 +0,0 @@
.root-container {
width: 100%;
height: 100%;
}