From 8f2c595eca30e2d7138c8e8d6685774a8f44e55d Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 15 Feb 2018 16:59:58 -0500 Subject: omg --- frontend/components/Pagination.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'frontend/components/Pagination.js') 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

Loading Item...

; - + if (props.loading) return

Loading Item...

; const { aggregate, pageInfo } = props.itemsQuery.itemsConnection; const { page } = props; -- cgit v1.3