From 9fad87918106ee49f76fedb8a8ff040fcfb6ae6b Mon Sep 17 00:00:00 2001 From: Nick Pegg Date: Sat, 7 Oct 2017 17:31:33 -0700 Subject: [PATCH] Proper HistoryNav Detects whether there's a previous page or next page, the old HistoryNav was made to be dumber and most of the logic now lives in Posts (which is the only thing that uses HistoryNav anyway) The side-effect is that the nav is now within the content column, which is okay since it's symmetric now. --- src/App.js | 5 +--- src/Article.js | 62 +++++++++++++++++++++++++++++++++++++++++++------- src/Nav.js | 55 ++++++++++++++++++++------------------------ 3 files changed, 80 insertions(+), 42 deletions(-) diff --git a/src/App.js b/src/App.js index 380a57f..5218828 100644 --- a/src/App.js +++ b/src/App.js @@ -13,7 +13,7 @@ import { Container, Row, Column } from './skeleton'; import { Post, Posts } from './Article'; import { Footer } from './Footer'; import { Header } from './Header'; -import { NavList, TagNav, HistoryNav } from './Nav'; +import { NavList, TagNav } from './Nav'; import { NotFound } from './NotFound'; @@ -51,9 +51,6 @@ class App extends Component { - { /* Display HistoryNav if this is a series of articles */ } - -