Remove tooltip from VweKomante component

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-12-12 23:17:30 +04:00
parent 94a2729914
commit d0c9e8b396
+5 -27
View File
@@ -4,18 +4,14 @@ import PropTypes from 'prop-types'
import {useSession} from 'next-auth/react' import {useSession} from 'next-auth/react'
import { import {
IconButton,
Dialog, Dialog,
DialogTitle, DialogTitle,
DialogContent, DialogContent,
DialogActions, DialogActions,
Button, Button,
Typography, Typography,
Tooltip,
Zoom,
Badge Badge
} from '@mui/material' } from '@mui/material'
import CommentIcon from '@mui/icons-material/Comment'
import {useRouter} from 'next/router' import {useRouter} from 'next/router'
import Koneksyon from '../sesyon/koneksyon' import Koneksyon from '../sesyon/koneksyon'
import KomanteList from './komante-list' import KomanteList from './komante-list'
@@ -43,8 +39,6 @@ const Root = styled('div')((
} }
})) }))
const KomanteTooltip = Tooltip
export default function VweKomante({commentaires, parole, paroleId}) { export default function VweKomante({commentaires, parole, paroleId}) {
const [esOuve, meteEsOuve] = useState(false) const [esOuve, meteEsOuve] = useState(false)
const [esKoneksyonOuve, meteEsKoneksyonOuve] = useState(false) const [esKoneksyonOuve, meteEsKoneksyonOuve] = useState(false)
@@ -72,27 +66,11 @@ export default function VweKomante({commentaires, parole, paroleId}) {
return ( return (
<Root> <Root>
<KomanteTooltip <Badge badgeContent={commentaires.length} color='primary'>
title='Commentaires' <Button sx={{marginBlock: 3}} variant='outlined' onClick={handleClick}>
placement='bottom' Voir les commentaires
TransitionComponent={Zoom} </Button>
classes={{ </Badge>
tooltip: classes.tooltip
}}
>
<IconButton
className={classes.margin}
color='primary'
aria-label='commentaire'
component='span'
size='large'
onClick={handleClick}
>
<Badge badgeContent={commentaires.length} color='primary'>
<CommentIcon />
</Badge>
</IconButton>
</KomanteTooltip>
<Dialog <Dialog
open={esOuve} open={esOuve}
scroll='paper' scroll='paper'