diff options
author | Quentin Gliech <quentingliech@gmail.com> | 2022-02-22 21:50:14 +0100 |
---|---|---|
committer | Quentin Gliech <quentingliech@gmail.com> | 2022-02-22 21:50:14 +0100 |
commit | fd17d6dd1f7c9fbda4d3c3e2c2eb232bd9086fab (patch) | |
tree | 436108fbaa0d386b642768a90e90c1ad33d6fad2 /webui/src/components/CloseBugButton | |
parent | b0eb041e571dd616a9926d969bb42b3e7d6512e9 (diff) | |
download | git-bug-fd17d6dd1f7c9fbda4d3c3e2c2eb232bd9086fab.tar.gz |
webui: upgrade Material UI
Diffstat (limited to 'webui/src/components/CloseBugButton')
-rw-r--r-- | webui/src/components/CloseBugButton/index.tsx | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/webui/src/components/CloseBugButton/index.tsx b/webui/src/components/CloseBugButton/index.tsx index 77b93e7f..70b92392 100644 --- a/webui/src/components/CloseBugButton/index.tsx +++ b/webui/src/components/CloseBugButton/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 { useCloseBugMutation } from './CloseBug.generated'; -const useStyles = makeStyles((theme: Theme) => ({ - closeIssueIcon: { - color: theme.palette.secondary.dark, - paddingTop: '0.1rem', - }, -})); - interface Props { bug: BugFragment; disabled?: boolean; @@ -22,7 +14,6 @@ interface Props { function CloseBugButton({ bug, disabled }: Props) { const [closeBug, { loading, error }] = useCloseBugMutation(); - const classes = useStyles(); function closeBugAction() { closeBug({ @@ -54,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> |