diff --git a/react/app.js b/react/app.js index 8c8e00ff..137a743a 100644 --- a/react/app.js +++ b/react/app.js @@ -4,7 +4,7 @@ import HomePage from 'components/HomePage'; import AboutPage from 'components/AboutPage'; import LoginPage from 'containers/LoginPage'; import ShowPage from 'containers/ShowPage'; -import FourOhFourPage from 'components/FourOhFourPage'; +import FourOhFourPage from 'containers/FourOhFourPage'; const App = () => { return ( diff --git a/react/containers/FourOhFourPage/index.jsx b/react/containers/FourOhFourPage/index.jsx new file mode 100644 index 00000000..b16aa2a5 --- /dev/null +++ b/react/containers/FourOhFourPage/index.jsx @@ -0,0 +1,11 @@ +import { connect } from 'react-redux'; +import View from './view'; + +const mapStateToProps = ({ site: { host, title } }) => { + return { + host, + title, + }; +}; + +export default connect(mapStateToProps, null)(View); diff --git a/react/components/FourOhFourPage/index.jsx b/react/containers/FourOhFourPage/view.jsx similarity index 80% rename from react/components/FourOhFourPage/index.jsx rename to react/containers/FourOhFourPage/view.jsx index 0a9caec3..ad1d735b 100644 --- a/react/components/FourOhFourPage/index.jsx +++ b/react/containers/FourOhFourPage/view.jsx @@ -1,10 +1,10 @@ import React from 'react'; -import NavBar from 'containers/NavBar'; +import NavBar from 'containers/NavBar/index'; import Helmet from 'react-helmet'; -const { details: { title, host } } = require('../../../config/siteConfig.js'); class FourOhForPage extends React.Component { render () { + const {title, host} = this.props; return (