Add bagde to komantè
This commit is contained in:
@@ -12,7 +12,8 @@ import {
|
||||
Button,
|
||||
Typography,
|
||||
Tooltip,
|
||||
Zoom
|
||||
Zoom,
|
||||
Badge
|
||||
} from '@mui/material'
|
||||
import CommentIcon from '@mui/icons-material/Comment'
|
||||
import {useRouter} from 'next/router'
|
||||
@@ -87,7 +88,9 @@ export default function VweKomante({komante, teks}) {
|
||||
size='large'
|
||||
onClick={handleClick}
|
||||
>
|
||||
<CommentIcon />
|
||||
<Badge badgeContent={komante.length} color='primary'>
|
||||
<CommentIcon />
|
||||
</Badge>
|
||||
</IconButton>
|
||||
</KomanteTooltip>
|
||||
<Dialog
|
||||
|
||||
Reference in New Issue
Block a user