diff --git a/components/teks/teks-kat.js b/components/teks/teks-kat.js index e820d2c..1b4f0d5 100644 --- a/components/teks/teks-kat.js +++ b/components/teks/teks-kat.js @@ -14,7 +14,6 @@ import Box from '@mui/material/Box' import Grid from '@mui/material/Unstable_Grid2' import ExplicitIcon from '@mui/icons-material/Explicit' import {styled} from '@mui/material/styles' -import {Peertube} from '@icons-pack/react-simple-icons' import {getAlias} from '../../lib/utils/format' @@ -47,7 +46,7 @@ export default function TeksKat({parole}) { const aliases = getAlias(artistes, attributes.prioriteArtistes) const handleClick = slug => { - router.push(`/paroles/${slug}#${slug}`).then(() => window.scrollTo(0, 0)) + router.push(`/paroles/${slug}`)?.then(() => window.scrollTo(0, 0)) } return ( @@ -66,34 +65,33 @@ export default function TeksKat({parole}) { {titre} - {attributes.gadeEmbed && !attributes.okiMizikID && ( - - )} {attributes.explicitLyrics && ( )} - - {aliases} - - - {annee} - - - {attributes.user && ( - <> - (parole soumise par {attributes.user.username}) - - )} - {attributes.userAdmin && !attributes.user && ( - <> - (parole soumise par {attributes.userAdmin}) - - )} - - - Publiée le : {datPiblikasyon} - + + + {aliases} + + + {annee} + + + {attributes.user && ( + <> + (parole soumise par {attributes.user.username}) + + )} + {attributes.userAdmin && !attributes.user && ( + <> + (parole soumise par {attributes.userAdmin}) + + )} + + + Publiée le : {datPiblikasyon} + +