Add explicit icon to teks

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2021-05-28 17:03:27 +02:00
parent d8260dcb47
commit 32fac48688
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -15,6 +15,7 @@ import {
} from '@material-ui/core' } from '@material-ui/core'
import KeyboardBackspaceIcon from '@material-ui/icons/KeyboardBackspace' import KeyboardBackspaceIcon from '@material-ui/icons/KeyboardBackspace'
import ExplicitIcon from '@material-ui/icons/Explicit'
import MenuIcon from '@material-ui/icons/Menu' import MenuIcon from '@material-ui/icons/Menu'
@@ -210,6 +211,9 @@ export default function TeksDrawer({teks, anTeks}) {
<Box align='center'> <Box align='center'>
<Typography noWrap style={{marginTop: '0.8em'}} variant='h4'> <Typography noWrap style={{marginTop: '0.8em'}} variant='h4'>
{anTeks.tit} {anTeks.tit}
{anTeks.eksplisit && (
<ExplicitIcon style={{marginLeft: 10}} color='secondary' />
)}
</Typography> </Typography>
<Typography variant='caption'> <Typography variant='caption'>
{anTeks.user && ( {anTeks.user && (
+4
View File
@@ -10,6 +10,7 @@ import {
Typography, Typography,
Grid Grid
} from '@material-ui/core' } from '@material-ui/core'
import ExplicitIcon from '@material-ui/icons/Explicit'
import {makeStyles} from '@material-ui/core/styles' import {makeStyles} from '@material-ui/core/styles'
const useStyles = makeStyles({ const useStyles = makeStyles({
@@ -48,6 +49,9 @@ export default function TeksKat({teks}) {
<Typography display='inline' style={{marginRight: 5}} variant='h6' component='h2'> <Typography display='inline' style={{marginRight: 5}} variant='h6' component='h2'>
{tit} {tit}
</Typography> </Typography>
{teks.eksplisit && (
<ExplicitIcon style={{marginRight: 5}} color='secondary' fontSize='small' />
)}
<Typography variant='caption'> <Typography variant='caption'>
{teks.user && ( {teks.user && (
<> <>