From 09459b7e6a7ecde304f277c161301878cc33ae16 Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Sat, 9 Nov 2024 15:38:31 +0100 Subject: [PATCH] feat: add lifetime access to the front page --- .../HomePage/components/Sections/tier/TierSection.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/HomePage/components/Sections/tier/TierSection.tsx b/src/pages/HomePage/components/Sections/tier/TierSection.tsx index eef15f89..03729b1a 100644 --- a/src/pages/HomePage/components/Sections/tier/TierSection.tsx +++ b/src/pages/HomePage/components/Sections/tier/TierSection.tsx @@ -1,10 +1,11 @@ -import { getSubscribeLink } from '../../../../PricingPage/payment.links'; +import { getLifetimeLink, getSubscribeLink } from '../../../../PricingPage/payment.links'; import { TierInfoColumn } from './TierInfoColumn'; import { useIsLoggedIn } from '../../../../../lib/useIsLoggedIn'; function TierSection() { const isLoggedIn = useIsLoggedIn(); const subcribeLink = isLoggedIn ? getSubscribeLink() : '/login'; + const lifetimeLink = isLoggedIn ? getLifetimeLink() : '/login'; return ( @@ -24,6 +25,14 @@ function TierSection() { link: subcribeLink }} /> +