diff options
Diffstat (limited to 'webui/src/pages')
-rw-r--r-- | webui/src/pages/bug/CommentInput.tsx | 11 | ||||
-rw-r--r-- | webui/src/pages/list/ListQuery.tsx | 2 |
2 files changed, 3 insertions, 10 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> diff --git a/webui/src/pages/list/ListQuery.tsx b/webui/src/pages/list/ListQuery.tsx index 4284be00..5fe50e28 100644 --- a/webui/src/pages/list/ListQuery.tsx +++ b/webui/src/pages/list/ListQuery.tsx @@ -12,8 +12,6 @@ import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'; import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight'; import Skeleton from '@material-ui/lab/Skeleton'; -import GBButton from 'src/components/Button/GBButton'; - import FilterToolbar from './FilterToolbar'; import List from './List'; import { useListBugsQuery } from './ListQuery.generated'; |