From ce50269639988e39fe4e27cc8c309a9d5c75c958 Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quentingliech@gmail.com>
Date: Wed, 16 Feb 2022 10:27:26 +0100
Subject: webui: upgrade most dependencies

Also reformat everything with prettier
---
 webui/src/components/CloseBugWithCommentButton/index.tsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'webui/src/components/CloseBugWithCommentButton/index.tsx')

diff --git a/webui/src/components/CloseBugWithCommentButton/index.tsx b/webui/src/components/CloseBugWithCommentButton/index.tsx
index a0fefa4a..cbf3f757 100644
--- a/webui/src/components/CloseBugWithCommentButton/index.tsx
+++ b/webui/src/components/CloseBugWithCommentButton/index.tsx
@@ -24,10 +24,8 @@ interface Props {
 }
 
 function CloseBugWithCommentButton({ bug, comment, postClick }: Props) {
-  const [
-    addCommentAndCloseBug,
-    { loading, error },
-  ] = useAddCommentAndCloseBugMutation();
+  const [addCommentAndCloseBug, { loading, error }] =
+    useAddCommentAndCloseBugMutation();
   const classes = useStyles();
 
   function addCommentAndCloseBugAction() {
-- 
cgit 


From bce4d095e16fb33d181b29aa1d3476037c0c873a Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quentingliech@gmail.com>
Date: Wed, 16 Feb 2022 10:32:20 +0100
Subject: webui: replace React imports

---
 webui/src/components/CloseBugWithCommentButton/index.tsx | 2 --
 1 file changed, 2 deletions(-)

(limited to 'webui/src/components/CloseBugWithCommentButton/index.tsx')

diff --git a/webui/src/components/CloseBugWithCommentButton/index.tsx b/webui/src/components/CloseBugWithCommentButton/index.tsx
index cbf3f757..9663ec3f 100644
--- a/webui/src/components/CloseBugWithCommentButton/index.tsx
+++ b/webui/src/components/CloseBugWithCommentButton/index.tsx
@@ -1,5 +1,3 @@
-import React from 'react';
-
 import Button from '@material-ui/core/Button';
 import CircularProgress from '@material-ui/core/CircularProgress';
 import { makeStyles, Theme } from '@material-ui/core/styles';
-- 
cgit 


From fd17d6dd1f7c9fbda4d3c3e2c2eb232bd9086fab Mon Sep 17 00:00:00 2001
From: Quentin Gliech <quentingliech@gmail.com>
Date: Tue, 22 Feb 2022 21:50:14 +0100
Subject: webui: upgrade Material UI

---
 .../src/components/CloseBugWithCommentButton/index.tsx  | 17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)

(limited to 'webui/src/components/CloseBugWithCommentButton/index.tsx')

diff --git a/webui/src/components/CloseBugWithCommentButton/index.tsx b/webui/src/components/CloseBugWithCommentButton/index.tsx
index 9663ec3f..efad39b3 100644
--- a/webui/src/components/CloseBugWithCommentButton/index.tsx
+++ b/webui/src/components/CloseBugWithCommentButton/index.tsx
@@ -1,20 +1,12 @@
-import Button from '@material-ui/core/Button';
-import CircularProgress from '@material-ui/core/CircularProgress';
-import { makeStyles, Theme } from '@material-ui/core/styles';
-import ErrorOutlineIcon from '@material-ui/icons/ErrorOutline';
+import ErrorOutlineIcon from '@mui/icons-material/ErrorOutline';
+import Button from '@mui/material/Button';
+import CircularProgress from '@mui/material/CircularProgress';
 
 import { BugFragment } from 'src/pages/bug/Bug.generated';
 import { TimelineDocument } from 'src/pages/bug/TimelineQuery.generated';
 
 import { useAddCommentAndCloseBugMutation } from './CloseBugWithComment.generated';
 
-const useStyles = makeStyles((theme: Theme) => ({
-  closeIssueIcon: {
-    color: theme.palette.secondary.dark,
-    paddingTop: '0.1rem',
-  },
-}));
-
 interface Props {
   bug: BugFragment;
   comment: string;
@@ -24,7 +16,6 @@ interface Props {
 function CloseBugWithCommentButton({ bug, comment, postClick }: Props) {
   const [addCommentAndCloseBug, { loading, error }] =
     useAddCommentAndCloseBugMutation();
-  const classes = useStyles();
 
   function addCommentAndCloseBugAction() {
     addCommentAndCloseBug({
@@ -60,7 +51,7 @@ function CloseBugWithCommentButton({ bug, comment, postClick }: Props) {
       <Button
         variant="contained"
         onClick={() => addCommentAndCloseBugAction()}
-        startIcon={<ErrorOutlineIcon className={classes.closeIssueIcon} />}
+        startIcon={<ErrorOutlineIcon />}
       >
         Close bug with comment
       </Button>
-- 
cgit 

