diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-02-15 16:59:58 -0500 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-02-15 16:59:58 -0500 |
| commit | 8f2c595eca30e2d7138c8e8d6685774a8f44e55d (patch) | |
| tree | 3408b9c8eb3b0ea43cb72e13e0bd6393ab5bac61 /frontend/components/Pagination.js | |
| parent | a09b01abf7c03e6b7e43f2175e5a34501808821b (diff) | |
omg
Diffstat (limited to 'frontend/components/Pagination.js')
| -rw-r--r-- | frontend/components/Pagination.js | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/frontend/components/Pagination.js b/frontend/components/Pagination.js index 2cb5080..d00778b 100644 --- a/frontend/components/Pagination.js +++ b/frontend/components/Pagination.js @@ -1,15 +1,10 @@ -import React, { Component } from 'react'; -import { graphql, gql, compose } from 'react-apollo'; -import { ALL_ITEMS_QUERY } from '../queries'; -import withData from '../lib/withData'; +import React from 'react'; +import { compose } from 'react-apollo'; import { Link } from '../routes'; import { itemEnhancer } from '../enhancers/enhancers'; const Pagination = props => { - const { loading, error } = props.itemsQuery; - - if (loading) return <p>Loading Item...</p>; - + if (props.loading) return <p>Loading Item...</p>; const { aggregate, pageInfo } = props.itemsQuery.itemsConnection; const { page } = props; |
