diff options
| author | Luis Alvarez <luisito453@gmail.com> | 2018-05-15 17:21:12 -0500 |
|---|---|---|
| committer | Luis Alvarez <luisito453@gmail.com> | 2018-05-15 17:21:12 -0500 |
| commit | 908fafdde46b3ab5c533b8bf6ef0705169ad9f00 (patch) | |
| tree | d04c2e33d3cc6aff8d48da0345b91c76655fbda6 /frontend/pages/index.js | |
| parent | 81f4f870294d1641bd33aea5b08cf66e37e376e8 (diff) | |
Moved <Page> to _app
Diffstat (limited to 'frontend/pages/index.js')
| -rw-r--r-- | frontend/pages/index.js | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/frontend/pages/index.js b/frontend/pages/index.js index 1dca5e1..635142a 100644 --- a/frontend/pages/index.js +++ b/frontend/pages/index.js @@ -1,18 +1,9 @@ -import React from 'react'; -import PropTypes from 'prop-types'; import Items from '../components/Items'; -import Page from '../components/Page'; -class Home extends React.Component { - render() { - const page = parseInt(this.props.query.page) || 1; - console.log(this.props); - return ( - <Page> - <Items page={page} /> - </Page> - ); - } +const Home = props => { + const page = parseInt(props.query.page) || 1; + console.log(props); + return <Items page={page} /> } export default Home; |
