diff options
author | Noah Loomans <noahloomans@gmail.com> | 2018-01-28 20:00:44 +0100 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2018-01-28 20:00:44 +0100 |
commit | 9a9edd1865d619caada787231c8bb34be25af3af (patch) | |
tree | acd21e2654d6c5e70dc41c675972794ce95b4062 /src | |
parent | dde583c2fa9b990e1d30f7292f9cf28d9310e570 (diff) |
Give IndexPage and UserPage the correct namereact
Diffstat (limited to 'src')
-rw-r--r-- | src/client/react/components/page/Index.js | 4 | ||||
-rw-r--r-- | src/client/react/components/page/User.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/client/react/components/page/Index.js b/src/client/react/components/page/Index.js index c2994c9..e5e47c5 100644 --- a/src/client/react/components/page/Index.js +++ b/src/client/react/components/page/Index.js @@ -2,7 +2,7 @@ import React from 'react'; import Search from '../container/Search'; import HelpBox from '../container/HelpBox'; -const App = () => ( +const IndexPage = () => ( <div className="page-index"> <div className="container"> <img src="/icons/mml-logo.png" alt="Metis" /> @@ -12,4 +12,4 @@ const App = () => ( </div> ); -export default App; +export default IndexPage; diff --git a/src/client/react/components/page/User.js b/src/client/react/components/page/User.js index 10d608d..215a6e0 100644 --- a/src/client/react/components/page/User.js +++ b/src/client/react/components/page/User.js @@ -9,7 +9,7 @@ import View from '../container/View'; import users from '../../users'; import WeekSelector from '../container/WeekSelector'; -const App = ({ match, location }) => { +const UserPage = ({ match, location }) => { const user = `${match.params.type}/${match.params.value}`; const weekStr = queryString.parse(location.search).week; const week = purifyWeek(weekStr ? parseInt(weekStr, 10) : moment().week()); @@ -32,7 +32,7 @@ const App = ({ match, location }) => { ); }; -App.propTypes = { +UserPage.propTypes = { match: PropTypes.shape({ params: PropTypes.shape({ type: PropTypes.string.isRequired, @@ -44,4 +44,4 @@ App.propTypes = { }).isRequired, }; -export default App; +export default UserPage; |