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