mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 14:52:13 +00:00
simple search route implemented
This commit is contained in:
parent
36026b8ccb
commit
5c75afb230
4 changed files with 17 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class App extends PureComponent {
|
|||
<div className={styles['app']}>
|
||||
<BrowserRouter>
|
||||
<Switch>
|
||||
<Route path={'/(discover|library|calendar)?'} exact={true} component={Main} />
|
||||
<Route path={'/(discover|library|calendar|search)?'} exact={true} component={Main} />
|
||||
<Route path={'/addons'} component={Addons} />
|
||||
<Redirect to={'/'} />
|
||||
</Switch>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ import Board from '../Board';
|
|||
import Discover from '../Discover';
|
||||
import Library from '../Library';
|
||||
import Calendar from '../Calendar';
|
||||
import Search from '../Search';
|
||||
import styles from './styles';
|
||||
|
||||
class Main extends Component {
|
||||
|
|
@ -24,6 +25,7 @@ class Main extends Component {
|
|||
<Route path={'/discover'} component={Discover} />
|
||||
<Route path={'/library'} component={Library} />
|
||||
<Route path={'/calendar'} component={Calendar} />
|
||||
<Route path={'/search'} component={Search} />
|
||||
</Switch>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
11
src/routes/Search/Search.js
Normal file
11
src/routes/Search/Search.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import React, { Component } from 'react';
|
||||
|
||||
class Search extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div style={{ color: 'pink', paddingTop: 40 }}>You're on the Search Tab</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default Search;
|
||||
3
src/routes/Search/index.js
Normal file
3
src/routes/Search/index.js
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import Search from './Search';
|
||||
|
||||
export default Search;
|
||||
Loading…
Reference in a new issue