HistoryNav working with routing

This commit is contained in:
Nick Pegg 2017-10-07 12:27:33 -07:00
parent 0968c22cf6
commit 5d799021f0
2 changed files with 23 additions and 14 deletions

View file

@ -14,7 +14,7 @@ import { Container, Row, Column } from './skeleton';
import { Articles, RoutedArticle } from './Article';
import { Footer } from './Footer';
import { Header } from './Header';
import { NavList, TagNav, HistoryNav, HistoryNavStart } from './Nav';
import { NavList, TagNav, HistoryNav } from './Nav';
class App extends Component {
@ -47,7 +47,7 @@ class App extends Component {
</Row>
{ /* Display HistoryNav if this is a series of articles */ }
<Route exact path="/" component={HistoryNavStart} />
<Route exact path="/" component={HistoryNav} />
<Route exact path="/page/:page" component={HistoryNav} />
</Container>