feat: update AnnuncioFooter to conditionally hide video label when no videos are present
This commit is contained in:
parent
b861d43520
commit
43d67dceb8
1 changed files with 8 additions and 1 deletions
|
|
@ -686,7 +686,14 @@ const AnnuncioFooter = ({
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col gap-2">
|
<div className="flex flex-col gap-2">
|
||||||
<p className="px-2 font-semibold text-lg">Video:</p>
|
<p
|
||||||
|
className={cn(
|
||||||
|
"px-2 font-semibold text-lg",
|
||||||
|
videos.length === 0 && external_videos.length === 0 && "hidden",
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
Video:
|
||||||
|
</p>
|
||||||
<div className="flex flex-col flex-wrap gap-4 sm:flex-row sm:gap-2 sm:px-2">
|
<div className="flex flex-col flex-wrap gap-4 sm:flex-row sm:gap-2 sm:px-2">
|
||||||
{videos.map((video) => {
|
{videos.map((video) => {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue