diff options
author | Cláudio <claudio.engdist@gmail.com> | 2021-01-30 07:33:15 -0300 |
---|---|---|
committer | Cláudio <claudio.engdist@gmail.com> | 2021-01-30 07:33:15 -0300 |
commit | 898c037df0cc1a949c8f401921fac857cd4bac19 (patch) | |
tree | d392a5491b554868d4c421ea0ecde878ad33bc3b /webui/src/pages/bug | |
parent | 33d53e17579e065529783b2c36342387bad86341 (diff) | |
download | git-bug-898c037df0cc1a949c8f401921fac857cd4bac19.tar.gz |
Commit for #158
- Fixing github quality code checking issues
Diffstat (limited to 'webui/src/pages/bug')
-rw-r--r-- | webui/src/pages/bug/CommentInput.tsx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/webui/src/pages/bug/CommentInput.tsx b/webui/src/pages/bug/CommentInput.tsx index cfe50626..540a53f7 100644 --- a/webui/src/pages/bug/CommentInput.tsx +++ b/webui/src/pages/bug/CommentInput.tsx @@ -1,17 +1,12 @@ -import React, { useState, useRef, useEffect } from 'react'; +import React, { useState, useEffect } from 'react'; -import Button from '@material-ui/core/Button'; -import Paper from '@material-ui/core/Paper'; import Tab from '@material-ui/core/Tab'; import Tabs from '@material-ui/core/Tabs'; import TextField from '@material-ui/core/TextField'; -import { makeStyles, Theme } from '@material-ui/core/styles'; +import { makeStyles } from '@material-ui/core/styles'; import Content from 'src/components/Content'; -import { useAddCommentMutation } from './CommentForm.generated'; -import { TimelineDocument } from './TimelineQuery.generated'; - const useStyles = makeStyles((theme) => ({ container: { margin: theme.spacing(2, 0), @@ -67,7 +62,7 @@ function CommentInput({ loading, onChange }: Props) { useEffect(() => { onChange(input); - }, [input]); + }, [input, onChange]); return ( <div> |