diff --git a/src/components/Footer/PdfFooter/index.js b/src/components/Footer/PdfFooter/index.js new file mode 100644 index 000000000..80a07901c --- /dev/null +++ b/src/components/Footer/PdfFooter/index.js @@ -0,0 +1,19 @@ +import React from 'react'; +import Link from 'react-router/lib/Link'; + +const PdfFooter = () => ( + +); + +export default PdfFooter; diff --git a/src/containers/App/index.js b/src/containers/App/index.js index 5e5e3fd21..ca617c4c3 100644 --- a/src/containers/App/index.js +++ b/src/containers/App/index.js @@ -53,6 +53,7 @@ class App extends Component { const { main, nav, + footer, children, media, footNote, @@ -98,7 +99,7 @@ class App extends Component { />} {children || main} - + {footer || } {__CLIENT__ && { - import('./containers/Pdf') - .then(module => cb(null, { main: module.default, nav: 'noscript' })) - .catch(err => console.trace(err))} - onEnter={checkValidChapterOrVerse} - /> - - - import(/* webpackChunkName: "pdf" */ './containers/Pdf') - .then(module => cb(null, { main: module.default, nav: 'noscript' })) + Promise.all([ + import(/* webpackChunkName: "pdf" */ './containers/Pdf'), + import( + /* webpackChunkName: "pdf-footer" */ './components/Footer/PdfFooter' + ) + ]) + .then(modules => + cb(null, { + main: modules[0].default, + footer: modules[1].default, + nav: 'noscript' + }) + ) .catch(err => console.trace(err))} onEnter={checkValidChapterOrVerse} />