Add polochon shows

This commit is contained in:
Grégoire Delattre 2017-01-25 00:12:46 +01:00
parent f62413d5dc
commit bfedb6ffd4
2 changed files with 7 additions and 0 deletions

View File

@ -90,6 +90,9 @@ const MovieListSearch = (props) => (
const ShowListPopular = (props) => ( const ShowListPopular = (props) => (
<ShowList {...props} showsUrl='/shows/explore'/> <ShowList {...props} showsUrl='/shows/explore'/>
) )
const ShowListPolochon = (props) => (
<ShowList {...props} showsUrl='/shows/polochon'/>
)
const ShowDetailsView = (props) => ( const ShowDetailsView = (props) => (
<ShowDetails {...props} /> <ShowDetails {...props} />
) )
@ -110,6 +113,7 @@ ReactDOM.render((
<Route path="/movies/polochon(/:page)" component={UserIsAuthenticated(MovieListPolochon)} /> <Route path="/movies/polochon(/:page)" component={UserIsAuthenticated(MovieListPolochon)} />
<Route path="/shows/search/:search" component={UserIsAuthenticated(ShowListSearch)} /> <Route path="/shows/search/:search" component={UserIsAuthenticated(ShowListSearch)} />
<Route path="/shows/popular" component={UserIsAuthenticated(ShowListPopular)} /> <Route path="/shows/popular" component={UserIsAuthenticated(ShowListPopular)} />
<Route path="/shows/polochon" component={UserIsAuthenticated(ShowListPolochon)} />
<Route path="/shows/details/:imdbId" component={UserIsAuthenticated(ShowDetailsView)} /> <Route path="/shows/details/:imdbId" component={UserIsAuthenticated(ShowDetailsView)} />
</Route> </Route>
</Router> </Router>

View File

@ -99,6 +99,9 @@ function ShowsDropdown(props) {
<LinkContainer to="/shows/popular"> <LinkContainer to="/shows/popular">
<NavItem>Popular</NavItem> <NavItem>Popular</NavItem>
</LinkContainer> </LinkContainer>
<LinkContainer to="/shows/polochon">
<NavItem>Polochon</NavItem>
</LinkContainer>
</NavDropdown> </NavDropdown>
</Nav> </Nav>
); );