diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-11 12:31:49 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-11 12:31:49 -0400 |
| commit | d3838ccb799cd8c286efcea90d776e8b6936d484 (patch) | |
| tree | 4430ea2ada80b1fefb057adfce91867484be7475 /frontend/pages/add.js | |
| parent | 8ccb0d93cdc064776454c929e15aa03129be37a3 (diff) | |
move apollo to _app
Diffstat (limited to 'frontend/pages/add.js')
| -rw-r--r-- | frontend/pages/add.js | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/frontend/pages/add.js b/frontend/pages/add.js index bbe89d6..118d6f9 100644 --- a/frontend/pages/add.js +++ b/frontend/pages/add.js @@ -1,17 +1,13 @@ import Page from '../components/Page'; -import withData from '../lib/withData'; import CreateItem from '../components/CreateItem'; import PleaseSignIn from '../components/PleaseSignIn'; -const Home = props => { - const page = parseInt(props.url.query.page) || 1; - return ( - <Page> - <PleaseSignIn> - <CreateItem /> - </PleaseSignIn> - </Page> - ); -}; +const Add = () => ( + <Page> + <PleaseSignIn> + <CreateItem /> + </PleaseSignIn> + </Page> +); -export default withData(Home); +export default Add; |
