Reorganize Teks page
This commit is contained in:
@@ -35,7 +35,7 @@ export default function DiferansDialog({difference}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box sx={{textAlign: 'center'}}>
|
<Box sx={{textAlign: 'center', marginTop: 2}}>
|
||||||
<Button variant='outlined' onClick={handleClickOpen}>
|
<Button variant='outlined' onClick={handleClickOpen}>
|
||||||
Voir la liste des modifications
|
Voir la liste des modifications
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
+18
-19
@@ -132,7 +132,7 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
|
|||||||
<Pataje parole={parole} setError={setError} setSuccess={setSuccess} />
|
<Pataje parole={parole} setError={setError} setSuccess={setSuccess} />
|
||||||
</div>
|
</div>
|
||||||
<Box sx={{textAlign: 'center'}}>
|
<Box sx={{textAlign: 'center'}}>
|
||||||
<Typography variant='h4' component='div' display='block'>
|
<Typography variant='h4' component='div' display='block' marginBottom={2}>
|
||||||
<Typography gutterBottom variant='h6' component='div'>
|
<Typography gutterBottom variant='h6' component='div'>
|
||||||
{aliases}
|
{aliases}
|
||||||
</Typography>
|
</Typography>
|
||||||
@@ -151,12 +151,8 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
|
|||||||
</ExplicitTooltip>
|
</ExplicitTooltip>
|
||||||
)}
|
)}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Grid container alignItems='center' justifyContent='center'>
|
|
||||||
{commentaires && (
|
|
||||||
<VweKomante commentaires={commentaires} parole={parole} paroleId={paroleId} />
|
|
||||||
)}
|
|
||||||
</Grid>
|
|
||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
{parole?.user?.data && (
|
{parole?.user?.data && (
|
||||||
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
<Typography style={{marginBottom: '1.5em'}} display='block' variant='caption'>
|
||||||
<i>parole soumise par {parole.user.data.attributes.username}</i>
|
<i>parole soumise par {parole.user.data.attributes.username}</i>
|
||||||
@@ -167,20 +163,18 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
|
|||||||
<i>parole soumise par {parole.userAdmin.data.attributes.firstname}</i>
|
<i>parole soumise par {parole.userAdmin.data.attributes.firstname}</i>
|
||||||
</Typography>
|
</Typography>
|
||||||
)}
|
)}
|
||||||
|
{(parole.okiMizikID || parole.streamAudio.length > 0) && (
|
||||||
|
<Box sx={{textAlign: 'center'}}>
|
||||||
|
<EntegreMizik parole={parole} isMobile={isMobile} />
|
||||||
|
</Box>
|
||||||
|
)}
|
||||||
|
{parole.okiMizikID && (
|
||||||
|
<OkiMizik id={parole.okiMizikID} parole={parole} />
|
||||||
|
)}
|
||||||
|
{parole?.difference?.length > 0 && (
|
||||||
|
<DiferansDialog difference={parole.difference} />
|
||||||
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
{(parole.okiMizikID || parole.streamAudio.length > 0) && (
|
|
||||||
<Box sx={{textAlign: 'center'}}>
|
|
||||||
<EntegreMizik parole={parole} isMobile={isMobile} />
|
|
||||||
</Box>
|
|
||||||
)}
|
|
||||||
{parole.okiMizikID && (
|
|
||||||
<OkiMizik id={parole.okiMizikID} parole={parole} />
|
|
||||||
)}
|
|
||||||
|
|
||||||
{parole?.difference?.length > 0 && (
|
|
||||||
<DiferansDialog difference={parole.difference} />
|
|
||||||
)}
|
|
||||||
|
|
||||||
<Grid container justifyContent='start' spacing={1}>
|
<Grid container justifyContent='start' spacing={1}>
|
||||||
<Grid item xs={12} md={langArray.length > 0 ? 6 : null}>
|
<Grid item xs={12} md={langArray.length > 0 ? 6 : null}>
|
||||||
<div className={classes.gridText}>
|
<div className={classes.gridText}>
|
||||||
@@ -243,6 +237,11 @@ export default function Teks({parole, paroleId, commentaires, open, success, err
|
|||||||
</Alert>
|
</Alert>
|
||||||
</Snackbar>
|
</Snackbar>
|
||||||
)}
|
)}
|
||||||
|
<Grid container alignItems='center' justifyContent='center'>
|
||||||
|
{commentaires && (
|
||||||
|
<VweKomante commentaires={commentaires} parole={parole} paroleId={paroleId} />
|
||||||
|
)}
|
||||||
|
</Grid>
|
||||||
</Root>
|
</Root>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user