From 97b2d0a692ac07d8d0b8b6c85ec99569cf3a9f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Wed, 6 Mar 2024 18:18:01 +0100 Subject: [PATCH] fix: partnaire logo style on offers --- webapp/src/components/cards/OfferCard.tsx | 113 +++++++++++----------- 1 file changed, 58 insertions(+), 55 deletions(-) diff --git a/webapp/src/components/cards/OfferCard.tsx b/webapp/src/components/cards/OfferCard.tsx index 17332625..72aae10c 100644 --- a/webapp/src/components/cards/OfferCard.tsx +++ b/webapp/src/components/cards/OfferCard.tsx @@ -6,64 +6,67 @@ import { dottedPattern } from "~/utils/chakra-theme"; import { OfferKindBadge } from "../OfferKindBadge"; type OfferCardProps = { - offer: OfferIncluded; - displayExpiryDate?: boolean; + offer: OfferIncluded; + displayExpiryDate?: boolean; }; const OfferCard = ({ offer, displayExpiryDate = false }: OfferCardProps) => { - return ( - - - - - {offer.partner.icon.alt - - - - - {offer.partner.name} - - - {offer.title} - - - {displayExpiryDate && ( - - - Expire le : {new Date(offer.validityTo).toLocaleDateString()} - - - )} - - - - ); + return ( + + + + + {offer.partner.icon.alt + + + + + {offer.partner.name} + + + {offer.title} + + + {displayExpiryDate && ( + + + Expire le : {new Date(offer.validityTo).toLocaleDateString()} + + + )} + + + + ); }; export default OfferCard;