From ba22ed4625d792765e96349ce53ac6e6554d51aa Mon Sep 17 00:00:00 2001 From: nicolasito1411 <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Wed, 22 May 2024 16:06:55 +0200 Subject: [PATCH 01/23] feat: domain gift page --- .../discount/discountCheckoutScreen.tsx | 9 ++ .../discount/discountOfferScreenVariant.tsx | 47 ++++++++++ components/discount/registerDiscount.tsx | 34 +++++++- components/domains/registerSummary.tsx | 18 ++-- pages/domain-gift.tsx | 62 +++++++++++++ public/visuals/gift.webp | Bin 0 -> 405298 bytes styles/discount.module.css | 82 +++++++++++++++++- types/frontTypes.d.ts | 4 +- utils/discounts/domainGift.ts | 31 +++++++ 9 files changed, 276 insertions(+), 11 deletions(-) create mode 100644 components/discount/discountOfferScreenVariant.tsx create mode 100644 pages/domain-gift.tsx create mode 100644 public/visuals/gift.webp create mode 100644 utils/discounts/domainGift.ts diff --git a/components/discount/discountCheckoutScreen.tsx b/components/discount/discountCheckoutScreen.tsx index b264e8e8..7f3953aa 100644 --- a/components/discount/discountCheckoutScreen.tsx +++ b/components/discount/discountCheckoutScreen.tsx @@ -10,6 +10,9 @@ type DiscountCheckoutScreenProps = { price: string; goBack: () => void; mailGroupId: string; + couponCode?: boolean; + couponHelper?: string; + banner?: string; }; const DiscountCheckoutScreen: FunctionComponent< @@ -22,6 +25,9 @@ const DiscountCheckoutScreen: FunctionComponent< price, goBack, mailGroupId, + couponCode, + couponHelper, + banner, }) => { return (
{desc}
+