aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/pages/bug/CommentInput.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/pages/bug/CommentInput.tsx')
-rw-r--r--webui/src/pages/bug/CommentInput.tsx11
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>