fix anon badge
This commit is contained in:
parent
245419185f
commit
021a13d21e
|
@ -1,4 +1,3 @@
|
||||||
import Badge from 'react-bootstrap/Badge'
|
|
||||||
import OverlayTrigger from 'react-bootstrap/OverlayTrigger'
|
import OverlayTrigger from 'react-bootstrap/OverlayTrigger'
|
||||||
import Tooltip from 'react-bootstrap/Tooltip'
|
import Tooltip from 'react-bootstrap/Tooltip'
|
||||||
import CowboyHatIcon from '@/svgs/cowboy.svg'
|
import CowboyHatIcon from '@/svgs/cowboy.svg'
|
||||||
|
@ -30,12 +29,7 @@ export default function Badges ({ user, badge, className = 'ms-1', badgeClassNam
|
||||||
if (Number(user.id) === USER_ID.anon) {
|
if (Number(user.id) === USER_ID.anon) {
|
||||||
return (
|
return (
|
||||||
<BadgeTooltip overlayText='anonymous'>
|
<BadgeTooltip overlayText='anonymous'>
|
||||||
{badge
|
<span className={className}><AnonIcon className={`${badgeClassName} align-middle`} height={height} width={width} /></span>
|
||||||
? (
|
|
||||||
<Badge bg='grey-medium' className='ms-2 d-inline-flex align-items-center'>
|
|
||||||
<AnonIcon className={`${badgeClassName} fill-dark align-middle`} height={height} width={width} />
|
|
||||||
</Badge>)
|
|
||||||
: <span><AnonIcon className={`${badgeClassName} align-middle`} height={height} width={width} /></span>}
|
|
||||||
</BadgeTooltip>
|
</BadgeTooltip>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue