import React from 'react';
import { Link } from '@material-ui/core';
import CircularProgress from '@material-ui/core/CircularProgress';
import { useGetBugsByUserQuery } from './GetBugsByUser.generated';
type Props = {
humanId: string;
};
function BugList({ humanId }: Props) {
const { loading, error, data } = useGetBugsByUserQuery({
variables: {
query: 'author:' + humanId,
},
});
if (loading) return
Error: {error}
; const bugs = data?.repository?.allBugs.nodes; console.log(bugs); return (