summaryrefslogtreecommitdiffstats
path: root/frontend/pages/index.js
blob: d4625c5674d8a3647dd163a86f43570566967c15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import PropTypes from 'prop-types';
import Items from '../components/Items';
import Page from '../components/Page';
import withData from '../lib/withData';

const Home = props => {
  const page = parseInt(props.url.query.page) || 1;
  return (
    <Page>
      <Items page={page} />
    </Page>
  );
};

Home.propTypes = {
  url: PropTypes.object.isRequired,
};

export default withData(Home);