diff options
author | Michael Muré <batolettre@gmail.com> | 2022-03-01 20:57:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 20:57:43 +0100 |
commit | 2dbe0fd5fc3f3f74848df9499cddf32663e771ee (patch) | |
tree | fa162059dd8732ab3d6b22fb6df1fa10a353985f /webui/src/components/CloseBugButton/index.tsx | |
parent | 08e00b4eb8f8cf8e614cae8dee46862a398f465d (diff) | |
parent | 8229e80d1eeee73bd4eab46c90d9f97f802ab063 (diff) | |
download | git-bug-2dbe0fd5fc3f3f74848df9499cddf32663e771ee.tar.gz |
Merge pull request #750 from MichaelMure/sandhose/webui-upgrade
Upgrade webui dependencies
Diffstat (limited to 'webui/src/components/CloseBugButton/index.tsx')
-rw-r--r-- | webui/src/components/CloseBugButton/index.tsx | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/webui/src/components/CloseBugButton/index.tsx b/webui/src/components/CloseBugButton/index.tsx index bb154ea7..70b92392 100644 --- a/webui/src/components/CloseBugButton/index.tsx +++ b/webui/src/components/CloseBugButton/index.tsx @@ -1,22 +1,12 @@ -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'; -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 { useCloseBugMutation } from './CloseBug.generated'; -const useStyles = makeStyles((theme: Theme) => ({ - closeIssueIcon: { - color: theme.palette.secondary.dark, - paddingTop: '0.1rem', - }, -})); - interface Props { bug: BugFragment; disabled?: boolean; @@ -24,7 +14,6 @@ interface Props { function CloseBugButton({ bug, disabled }: Props) { const [closeBug, { loading, error }] = useCloseBugMutation(); - const classes = useStyles(); function closeBugAction() { closeBug({ @@ -56,7 +45,7 @@ function CloseBugButton({ bug, disabled }: Props) { variant="contained" onClick={() => closeBugAction()} disabled={bug.status === 'CLOSED' || disabled} - startIcon={<ErrorOutlineIcon className={classes.closeIssueIcon} />} + startIcon={<ErrorOutlineIcon />} > Close bug </Button> |