Remove Dekoneksyon from Teks

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-03-26 15:41:41 +04:00
parent 88f28d5975
commit a0394a8ef6
+2 -8
View File
@@ -12,12 +12,10 @@ import {
import {styled} from '@mui/material/styles'
import MuiAlert from '@mui/material/Alert'
import ExplicitIcon from '@mui/icons-material/Explicit'
import {useSession} from 'next-auth/react'
import {formatJsonString} from '../../lib/utils/format'
import VweKomante from '../komante/vwe-komante'
import Dekoneksyon from '../sesyon/dekoneksyon'
import EntegreMizik from './entegre-mizik'
import OkiMizik from './oki-mizik'
@@ -124,7 +122,6 @@ const ExplicitTooltip = Tooltip
export default function Teks({anTeks, komante, open, success, error, setSuccess, setError, handleClose}) {
const isMobile = useMediaQuery('(max-width:800px)')
const {data: session} = useSession()
const langArray = langToArray(anTeks)
const awtis = anTeks.awtis.map(({alias}) => alias)
@@ -133,13 +130,13 @@ export default function Teks({anTeks, komante, open, success, error, setSuccess,
<div className={classes.pataje}>
<Pataje teks={anTeks} setError={setError} setSuccess={setSuccess} />
</div>
<Box sx={{textAlign: 'center', marginTop: 8}}>
<Box sx={{textAlign: 'center', marginTop: 9}}>
<Typography style={{marginTop: '0.8em'}} variant='h4' component='div' display='block'>
<Typography gutterBottom variant='h6' component='div'>
{new Intl.ListFormat('fr').format(awtis)}
</Typography>
<Typography variant='h5' component='div'>
{anTeks.tit}
{anTeks.tit} <small>({anTeks?.lanne})</small>
{anTeks.eksplisit && (
<ExplicitTooltip
title='Explicit Lyrics'
@@ -157,9 +154,6 @@ export default function Teks({anTeks, komante, open, success, error, setSuccess,
{komante && (
<VweKomante komante={komante} teks={anTeks} />
)}
{session && (
<Dekoneksyon tooltipPlacement='bottom' />
)}
</Grid>
</Typography>
{anTeks.user && (