Remove unused Badge component from ActivityPanel icon

This commit is contained in:
Deluan 2023-05-17 16:29:19 -04:00
parent a19a643c65
commit be12c12b28

View file

@ -3,7 +3,6 @@ import { useDispatch, useSelector } from 'react-redux'
import { useNotify, useTranslate } from 'react-admin' import { useNotify, useTranslate } from 'react-admin'
import { import {
Popover, Popover,
Badge,
CircularProgress, CircularProgress,
IconButton, IconButton,
makeStyles, makeStyles,
@ -94,9 +93,7 @@ const ActivityPanel = () => {
<div className={classes.wrapper}> <div className={classes.wrapper}>
<Tooltip title={translate('activity.title')}> <Tooltip title={translate('activity.title')}>
<IconButton className={classes.button} onClick={handleMenuOpen}> <IconButton className={classes.button} onClick={handleMenuOpen}>
<Badge badgeContent={null} color="secondary"> {up ? <FiActivity size={'20'} /> : <BiError size={'20'} />}
{up ? <FiActivity size={'20'} /> : <BiError size={'20'} />}
</Badge>
</IconButton> </IconButton>
</Tooltip> </Tooltip>
{scanStatus.scanning && ( {scanStatus.scanning && (