From 63766e84e93b913ece8580eeac2243aa56708448 Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Sun, 11 Feb 2018 15:58:59 -0500 Subject: [PATCH] Breaking Header and Footer out into components For forthcoming i18n setup --- src/components/App.js | 12 +- src/components/Footer.js | 20 +++ src/components/Footer.test.js | 13 ++ src/components/Header.js | 19 +++ src/components/Header.test.js | 26 ++++ src/components/PageTemplate.js | 36 +----- src/components/PageTemplate.test.js | 1 - .../__snapshots__/Footer.test.js.snap | 30 +++++ .../__snapshots__/Header.test.js.snap | 28 ++++ .../__snapshots__/PageTemplate.test.js.snap | 120 +++--------------- src/pages/index/template.js | 2 - 11 files changed, 168 insertions(+), 139 deletions(-) create mode 100644 src/components/Footer.js create mode 100644 src/components/Footer.test.js create mode 100644 src/components/Header.js create mode 100644 src/components/Header.test.js create mode 100644 src/components/__snapshots__/Footer.test.js.snap create mode 100644 src/components/__snapshots__/Header.test.js.snap diff --git a/src/components/App.js b/src/components/App.js index 88a7054..5efe890 100644 --- a/src/components/App.js +++ b/src/components/App.js @@ -1,9 +1,15 @@ import React from 'react'; +import Header from './Header'; +import Footer from './Footer'; import Message from './Message'; -const App = () => -

Placeholder app content

-
; +const App = () => +
+ +

Placeholder app content

+
+