Remove Dekoneksyon from Teks
This commit is contained in:
@@ -12,12 +12,10 @@ import {
|
|||||||
import {styled} from '@mui/material/styles'
|
import {styled} from '@mui/material/styles'
|
||||||
import MuiAlert from '@mui/material/Alert'
|
import MuiAlert from '@mui/material/Alert'
|
||||||
import ExplicitIcon from '@mui/icons-material/Explicit'
|
import ExplicitIcon from '@mui/icons-material/Explicit'
|
||||||
import {useSession} from 'next-auth/react'
|
|
||||||
|
|
||||||
import {formatJsonString} from '../../lib/utils/format'
|
import {formatJsonString} from '../../lib/utils/format'
|
||||||
|
|
||||||
import VweKomante from '../komante/vwe-komante'
|
import VweKomante from '../komante/vwe-komante'
|
||||||
import Dekoneksyon from '../sesyon/dekoneksyon'
|
|
||||||
|
|
||||||
import EntegreMizik from './entegre-mizik'
|
import EntegreMizik from './entegre-mizik'
|
||||||
import OkiMizik from './oki-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}) {
|
export default function Teks({anTeks, komante, open, success, error, setSuccess, setError, handleClose}) {
|
||||||
const isMobile = useMediaQuery('(max-width:800px)')
|
const isMobile = useMediaQuery('(max-width:800px)')
|
||||||
const {data: session} = useSession()
|
|
||||||
const langArray = langToArray(anTeks)
|
const langArray = langToArray(anTeks)
|
||||||
const awtis = anTeks.awtis.map(({alias}) => alias)
|
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}>
|
<div className={classes.pataje}>
|
||||||
<Pataje teks={anTeks} setError={setError} setSuccess={setSuccess} />
|
<Pataje teks={anTeks} setError={setError} setSuccess={setSuccess} />
|
||||||
</div>
|
</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 style={{marginTop: '0.8em'}} variant='h4' component='div' display='block'>
|
||||||
<Typography gutterBottom variant='h6' component='div'>
|
<Typography gutterBottom variant='h6' component='div'>
|
||||||
{new Intl.ListFormat('fr').format(awtis)}
|
{new Intl.ListFormat('fr').format(awtis)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Typography variant='h5' component='div'>
|
<Typography variant='h5' component='div'>
|
||||||
{anTeks.tit}
|
{anTeks.tit} <small>({anTeks?.lanne})</small>
|
||||||
{anTeks.eksplisit && (
|
{anTeks.eksplisit && (
|
||||||
<ExplicitTooltip
|
<ExplicitTooltip
|
||||||
title='Explicit Lyrics'
|
title='Explicit Lyrics'
|
||||||
@@ -157,9 +154,6 @@ export default function Teks({anTeks, komante, open, success, error, setSuccess,
|
|||||||
{komante && (
|
{komante && (
|
||||||
<VweKomante komante={komante} teks={anTeks} />
|
<VweKomante komante={komante} teks={anTeks} />
|
||||||
)}
|
)}
|
||||||
{session && (
|
|
||||||
<Dekoneksyon tooltipPlacement='bottom' />
|
|
||||||
)}
|
|
||||||
</Grid>
|
</Grid>
|
||||||
</Typography>
|
</Typography>
|
||||||
{anTeks.user && (
|
{anTeks.user && (
|
||||||
|
|||||||
Reference in New Issue
Block a user