diff options
author | Michael Muré <batolettre@gmail.com> | 2018-08-15 20:31:53 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-08-15 20:31:53 +0200 |
commit | 1984d4343db770fc2c8e251a81f1ab997a4c4d5e (patch) | |
tree | d60630e0d36ea24ee9eaf16653194703f4b46dd8 /webui/src/list | |
parent | 2530cee1eac225924e1119554cf475cdc46ed7dc (diff) | |
download | git-bug-1984d4343db770fc2c8e251a81f1ab997a4c4d5e.tar.gz |
webui: rework of the bug page with a timeline
Diffstat (limited to 'webui/src/list')
-rw-r--r-- | webui/src/list/ListQuery.js (renamed from webui/src/list/ListPage.js) | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/webui/src/list/ListPage.js b/webui/src/list/ListQuery.js index b7de735f..3b57fcc2 100644 --- a/webui/src/list/ListPage.js +++ b/webui/src/list/ListQuery.js @@ -3,7 +3,6 @@ import CircularProgress from '@material-ui/core/CircularProgress' import gql from 'graphql-tag' import React from 'react' import { Query } from 'react-apollo' - import BugRow from './BugRow' import List from './List' @@ -32,14 +31,14 @@ const QUERY = gql` ${BugRow.fragment} ` -const ListPage = () => ( +const ListQuery = () => ( <Query query={QUERY}> {({loading, error, data, fetchMore}) => { if (loading) return <CircularProgress/> - if (error) return <p>Error.</p> + if (error) return <p>Error: {error}</p> return <List bugs={data.defaultRepository.bugs} fetchMore={fetchMore}/> }} </Query> ) -export default ListPage +export default ListQuery |