From c66bc03741c9328cd66f71fa4ac84bd4a374d573 Mon Sep 17 00:00:00 2001 From: Federico Tensi Date: Fri, 29 Mar 2024 13:42:56 +0100 Subject: [PATCH] fix: agenda links, coming soon img placeholder --- src/Components/Agenda.tsx | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/src/Components/Agenda.tsx b/src/Components/Agenda.tsx index 0efbb87..b6eef41 100644 --- a/src/Components/Agenda.tsx +++ b/src/Components/Agenda.tsx @@ -7,6 +7,7 @@ import { useEffect, useRef, useState } from "react"; import dino_mascot from "../assets/Animals SVG/Dino_mascot.svg"; const IS_COMING_SOON = false; +const PLACEHOLDER_NAME = "someone to be announced"; const AgendaAccordion = () => { const [width, setWidth] = useState(window.innerWidth); const containerRef = useRef(null); @@ -240,17 +241,18 @@ const TalkCard = ({
{title} -
+

{description}

@@ -258,7 +260,13 @@ const TalkCard = ({ {talkType === "talk" && (

By  - + {speakerNameTitle}

@@ -278,7 +286,20 @@ const TalkCard = ({ loading="lazy" /> )} - {!profileImg &&

{name}

} + + {!profileImg && name === PLACEHOLDER_NAME ? ( + {speakerNameTitle} + ) : ( + !profileImg &&

{name}

+ )}