aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/bug/BugQuery.js
diff options
context:
space:
mode:
authorQuentin Gliech <quentingliech@gmail.com>2020-02-03 23:08:26 +0100
committerQuentin Gliech <quentingliech@gmail.com>2020-02-11 20:54:36 +0100
commita2721971ba82a6ba0e735bd06cf555a4c1bca84e (patch)
treeae92cad5ff79350ffc11949032d7706e072d7b72 /webui/src/bug/BugQuery.js
parentaea42344ded1708361e7e1d577e9c6aa370ad64e (diff)
downloadgit-bug-a2721971ba82a6ba0e735bd06cf555a4c1bca84e.tar.gz
webui: generate TS types for graphql queries
Diffstat (limited to 'webui/src/bug/BugQuery.js')
-rw-r--r--webui/src/bug/BugQuery.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/webui/src/bug/BugQuery.js b/webui/src/bug/BugQuery.js
deleted file mode 100644
index dbf24c31..00000000
--- a/webui/src/bug/BugQuery.js
+++ /dev/null
@@ -1,30 +0,0 @@
-import CircularProgress from '@material-ui/core/CircularProgress';
-import gql from 'graphql-tag';
-import React from 'react';
-import { Query } from 'react-apollo';
-
-import Bug from './Bug';
-
-const QUERY = gql`
- query GetBug($id: String!) {
- defaultRepository {
- bug(prefix: $id) {
- ...Bug
- }
- }
- }
-
- ${Bug.fragment}
-`;
-
-const BugQuery = ({ match }) => (
- <Query query={QUERY} variables={{ id: match.params.id }}>
- {({ loading, error, data }) => {
- if (loading) return <CircularProgress />;
- if (error) return <p>Error: {error}</p>;
- return <Bug bug={data.defaultRepository.bug} />;
- }}
- </Query>
-);
-
-export default BugQuery;