diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2020-02-04 20:57:43 +0100 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2020-02-11 20:54:37 +0100 |
commit | 6a502c145bd8f2e2e1a9c0b103c11f0433c60737 (patch) | |
tree | 72c3a23aa6c5df8013d53523fa4125a3e28063a8 /webui/src/bug | |
parent | 9c570cac725fe7048ddd1d181b33b8fa1808e401 (diff) | |
download | git-bug-6a502c145bd8f2e2e1a9c0b103c11f0433c60737.tar.gz |
webui: convert bug list to typescript
Diffstat (limited to 'webui/src/bug')
-rw-r--r-- | webui/src/bug/Bug.tsx | 2 | ||||
-rw-r--r-- | webui/src/bug/BugQuery.tsx | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/webui/src/bug/Bug.tsx b/webui/src/bug/Bug.tsx index 75b6ffff..3685b506 100644 --- a/webui/src/bug/Bug.tsx +++ b/webui/src/bug/Bug.tsx @@ -52,7 +52,7 @@ const useStyles = makeStyles(theme => ({ })); type Props = { - bug: BugFragment + bug: BugFragment; }; function Bug({ bug }: Props) { diff --git a/webui/src/bug/BugQuery.tsx b/webui/src/bug/BugQuery.tsx index 6bf525e6..b436db5a 100644 --- a/webui/src/bug/BugQuery.tsx +++ b/webui/src/bug/BugQuery.tsx @@ -6,11 +6,13 @@ import { useGetBugQuery } from './BugQuery.generated'; import Bug from './Bug'; type Props = RouteComponentProps<{ - id: string + id: string; }>; const BugQuery: React.FC<Props> = ({ match }: Props) => { - const { loading, error, data } = useGetBugQuery({ variables: { id: match.params.id } }); + const { loading, error, data } = useGetBugQuery({ + variables: { id: match.params.id }, + }); if (loading) return <CircularProgress />; if (error) return <p>Error: {error}</p>; if (!data?.defaultRepository?.bug) return <p>404.</p>; |