({ error }: ErrorProps)
| 168 | |
| 169 | type ErrorProps = { error: ApolloError }; |
| 170 | const Error: React.FC<ErrorProps> = ({ error }: ErrorProps) => { |
| 171 | const classes = useStyles({}); |
| 172 | return ( |
| 173 | <div className={[classes.errorBox, classes.message].join(' ')}> |
| 174 | <ErrorOutline fontSize="large" /> |
| 175 | <p>There was an error while fetching bug.</p> |
| 176 | <p> |
| 177 | <em>{error.message}</em> |
| 178 | </p> |
| 179 | <pre> |
| 180 | <code>{JSON.stringify(error, null, 2)}</code> |
| 181 | </pre> |
| 182 | </div> |
| 183 | ); |
| 184 | }; |
| 185 | |
| 186 | function ListQuery() { |
| 187 | const location = useLocation(); |
nothing calls this directly
no outgoing calls
no test coverage detected