N'afficher le bouton de réservation que si un lien est fourni

This commit is contained in:
Jalil Arfaoui 2026-03-09 18:20:20 +01:00
parent 5946c7b61e
commit 31648292c1

View file

@ -65,8 +65,8 @@ const now = new Date();
</div> </div>
<!-- Action Block --> <!-- Action Block -->
{event.bookingLink && (
<div class="flex-shrink-0 flex items-center"> <div class="flex-shrink-0 flex items-center">
{event.bookingLink ? (
<a <a
href={event.bookingLink} href={event.bookingLink}
target="_blank" target="_blank"
@ -76,13 +76,8 @@ const now = new Date();
<Icon name="lucide:ticket" size={18} /> <Icon name="lucide:ticket" size={18} />
Réserver Réserver
</a> </a>
) : (
<div class="w-full md:w-auto flex items-center justify-center gap-2 border-2 border-dashed border-night/10 text-night/30 px-6 py-3 md:px-8 md:py-4 rounded-full font-sans text-sm font-bold uppercase tracking-widest italic">
<Icon name="lucide:info" size={16} />
Sur place
</div> </div>
)} )}
</div>
<!-- Affiche --> <!-- Affiche -->
{spectacle?.affiche && ( {spectacle?.affiche && (