From 380ece7ed36724eb9090fbc6cf33bc7bf544fc09 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Thu, 4 Apr 2024 15:35:10 +0200 Subject: [PATCH] :sparkles: update subscription --- .../Components/SubscribeCheckoutTicket/index.tsx | 5 +++-- .../Components/SubscribeIllimityComponent/index.tsx | 5 +++-- .../Components/SubscribeStandardComponent/index.tsx | 7 ++++++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/index.tsx index 4efd2c45..261bab7d 100644 --- a/src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/index.tsx +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeCheckoutTicket/index.tsx @@ -19,6 +19,7 @@ export const collaboratorPrice = 6.99; type IProps = { forfeitType: EForfeitType; numberOfCollaborators: number; + hasNavTab?: boolean; defaultFrequency?: EPaymentFrequency; }; @@ -29,7 +30,7 @@ export enum EPaymentFrequency { export default function SubscribeCheckoutTicket(props: IProps) { const router = useRouter(); - const { forfeitType, numberOfCollaborators } = props; + const { forfeitType, numberOfCollaborators, hasNavTab = true } = props; const [paymentFrequency, setPaymentFrequency] = useState(props.defaultFrequency ?? EPaymentFrequency.monthly); const [multiplier, setMultiplier] = useState(1); @@ -186,7 +187,7 @@ export default function SubscribeCheckoutTicket(props: IProps) { diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx index b70c2b7f..875ce2e0 100644 --- a/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeIllimityComponent/index.tsx @@ -78,12 +78,13 @@ export default function SubscribeIllimityComponent({ hasNavTab = true }: IProps)
- +
- +
diff --git a/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx index 5f371062..0b06aadc 100644 --- a/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx +++ b/src/front/Components/Layouts/Subscription/Components/SubscribeStandardComponent/index.tsx @@ -80,7 +80,11 @@ export default function SubscribeStandardComponent({ hasNavTab = true }: IProps)
- +
@@ -89,6 +93,7 @@ export default function SubscribeStandardComponent({ hasNavTab = true }: IProps) forfeitType={EForfeitType.standard} numberOfCollaborators={numberOfCollaborators} defaultFrequency={paymentFrequency} + hasNavTab={hasNavTab} />