Add tooltips to eksplisit teks
This commit is contained in:
@@ -15,7 +15,10 @@ import {
|
|||||||
IconButton,
|
IconButton,
|
||||||
Box,
|
Box,
|
||||||
useMediaQuery,
|
useMediaQuery,
|
||||||
Snackbar
|
Snackbar,
|
||||||
|
Tooltip,
|
||||||
|
Zoom,
|
||||||
|
withStyles
|
||||||
} from '@material-ui/core'
|
} from '@material-ui/core'
|
||||||
|
|
||||||
import KeyboardBackspaceIcon from '@material-ui/icons/KeyboardBackspace'
|
import KeyboardBackspaceIcon from '@material-ui/icons/KeyboardBackspace'
|
||||||
@@ -165,6 +168,14 @@ const alignTeks = (langArray, isMobile) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const ExplicitTooltip = withStyles(() => ({
|
||||||
|
tooltip: {
|
||||||
|
fontSize: 18,
|
||||||
|
fontWeight: 'bold',
|
||||||
|
backgroundColor: 'rgba(245, 0, 87, 0.8)'
|
||||||
|
}
|
||||||
|
}))(Tooltip)
|
||||||
|
|
||||||
export default function TeksDrawer({teks, anTeks, komante}) {
|
export default function TeksDrawer({teks, anTeks, komante}) {
|
||||||
const [session] = useSession()
|
const [session] = useSession()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@@ -279,7 +290,9 @@ export default function TeksDrawer({teks, anTeks, komante}) {
|
|||||||
<Typography style={{marginTop: '0.8em'}} variant='h4'>
|
<Typography style={{marginTop: '0.8em'}} variant='h4'>
|
||||||
{anTeks.tit}
|
{anTeks.tit}
|
||||||
{anTeks.eksplisit && (
|
{anTeks.eksplisit && (
|
||||||
|
<ExplicitTooltip title='Explicit Lyrics' placement='bottom' TransitionComponent={Zoom}>
|
||||||
<ExplicitIcon style={{marginLeft: 10}} color='secondary' />
|
<ExplicitIcon style={{marginLeft: 10}} color='secondary' />
|
||||||
|
</ExplicitTooltip>
|
||||||
)}
|
)}
|
||||||
{komante && (
|
{komante && (
|
||||||
<VweKomante komante={komante} teks={anTeks} />
|
<VweKomante komante={komante} teks={anTeks} />
|
||||||
|
|||||||
Reference in New Issue
Block a user