Add polochon shows
This commit is contained in:
parent
f62413d5dc
commit
bfedb6ffd4
@ -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>
|
||||||
|
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user