import React from "react"; import { Query } from "react-apollo"; import gql from "graphql-tag"; import CircularProgress from "@material-ui/core/CircularProgress"; import Bug from "./Bug"; const QUERY = gql` query GetBug($id: String!) { defaultRepository { bug(prefix: $id) { ...Bug } } } ${Bug.fragment} `; const BugPage = ({ match }) => ( {({ loading, error, data }) => { if (loading) return ; if (error) return

Error.

; return ; }}
); export default BugPage;