From 01c13dac48ceb02eb566d49b302f19aa9f9c2909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Thu, 27 Oct 2022 19:36:52 +0400 Subject: [PATCH] Fix explicit lyrics display & move submit username --- components/awtis/mizik-lis.js | 2 +- components/teks/teks-kat.js | 39 +++++++++++++++++++---------------- 2 files changed, 22 insertions(+), 19 deletions(-) diff --git a/components/awtis/mizik-lis.js b/components/awtis/mizik-lis.js index 381de8b..2dde3c7 100644 --- a/components/awtis/mizik-lis.js +++ b/components/awtis/mizik-lis.js @@ -60,7 +60,7 @@ export default function MizikLis({meteEsMobilOuve, niAwtis, paroles, slugTeksChw onClick={() => handleClick(attributes.slug)} > - {attributes.explicite && ( + {attributes.explicitLyrics && ( )} {attributes.okiMizikID && ( diff --git a/components/teks/teks-kat.js b/components/teks/teks-kat.js index a2a863b..0248ba5 100644 --- a/components/teks/teks-kat.js +++ b/components/teks/teks-kat.js @@ -8,7 +8,8 @@ import { CardContent, CardMedia, Typography, - Grid + Grid, + Box } from '@mui/material' import ExplicitIcon from '@mui/icons-material/Explicit' import {styled} from '@mui/material/styles' @@ -59,30 +60,32 @@ export default function TeksKat({parole}) { title={titre} /> - - {titre} - - {parole.eksplisit && ( - - )} - - {parole.user && ( - <> - (parole soumise par {parole.user.username}) - + + + {titre} + + {attributes.explicitLyrics && ( + )} - {parole.userAdmin && !parole.user && ( - <> - (parole soumise par {parole.userAdmin}) - - )} - + {aliases} {annee} + + {attributes.user && ( + <> + (parole soumise par {attributes.user.username}) + + )} + {attributes.userAdmin && !attributes.user && ( + <> + (parole soumise par {attributes.userAdmin}) + + )} + PubliƩe le : {datPiblikasyon}