summaryrefslogtreecommitdiffstats
path: root/pages/index.js
blob: 17c8a71f9dbab735c06d38e89f98fae6a405e132 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Component } from 'react';
import Items from '../components/Items';
import CreateItem from '../components/CreateItem';
import Count from '../components/Count';
import LoginAuth0 from '../components/LoginAuth0';
import Header from '../components/Header';
import Page from '../components/Page';
import withData from '../lib/withData';

class Home extends Component {
  render() {
    const page = parseInt(this.props.url.query.page) || 1;
    return (
      <Page>

        <Count/>
        <CreateItem />
        <Items page={page}></Items>
      </Page>
    )
  }
}

export default withData(Home);