diff --git a/src/pages/HomePage/components/Sections/tier/TierSection.tsx b/src/pages/HomePage/components/Sections/tier/TierSection.tsx index de1ab01d..eef15f89 100644 --- a/src/pages/HomePage/components/Sections/tier/TierSection.tsx +++ b/src/pages/HomePage/components/Sections/tier/TierSection.tsx @@ -1,4 +1,4 @@ -import { getSubscribeLink } from '../../../../PricingPage/getSubscribeLink'; +import { getSubscribeLink } from '../../../../PricingPage/payment.links'; import { TierInfoColumn } from './TierInfoColumn'; import { useIsLoggedIn } from '../../../../../lib/useIsLoggedIn'; diff --git a/src/pages/PricingPage/PricingPage.tsx b/src/pages/PricingPage/PricingPage.tsx index c86c3e93..822f5f4b 100644 --- a/src/pages/PricingPage/PricingPage.tsx +++ b/src/pages/PricingPage/PricingPage.tsx @@ -1,6 +1,6 @@ import { PageContainer } from '../../components/styled'; import { getVisibleText } from '../../lib/text/getVisibleText'; -import { getSubscribeLink } from './getSubscribeLink'; +import { getLifetimeLink, getSubscribeLink } from './payment.links'; import { PricingCard } from './components/PricingCard'; import TopMessage from '../../components/TopMessage/TopMessage'; import { useIsLoggedIn } from '../../lib/useIsLoggedIn'; @@ -8,6 +8,7 @@ import { useIsLoggedIn } from '../../lib/useIsLoggedIn'; export default function PricingPage() { const isLoggedIn = useIsLoggedIn(); const subcribeLink = isLoggedIn ? getSubscribeLink() : '/login'; + const lifetimeLink = isLoggedIn ? getLifetimeLink() : '/login'; return ( @@ -35,6 +36,10 @@ export default function PricingPage() { +
+ +
diff --git a/src/pages/PricingPage/components/PricingCard.tsx b/src/pages/PricingPage/components/PricingCard.tsx index fc5db57b..0412454f 100644 --- a/src/pages/PricingPage/components/PricingCard.tsx +++ b/src/pages/PricingPage/components/PricingCard.tsx @@ -17,9 +17,7 @@ export function PricingCard({ price, title, benefits, linkText, link }: Readonly
-
    - {benefits.map((benefit) => (
  • {benefit}
  • ))} -
+ {benefits.map((benefit) => (

{benefit}

))}
{link && linkText &&
diff --git a/src/pages/PricingPage/getSubscribeLink.tsx b/src/pages/PricingPage/payment.links.ts similarity index 50% rename from src/pages/PricingPage/getSubscribeLink.tsx rename to src/pages/PricingPage/payment.links.ts index 70908523..f6b4f9be 100644 --- a/src/pages/PricingPage/getSubscribeLink.tsx +++ b/src/pages/PricingPage/payment.links.ts @@ -2,3 +2,8 @@ export const getSubscribeLink = () => process.env.NODE_ENV === 'development' ? 'https://buy.stripe.com/test_fZebM83k00Rj6PeeUU' : 'https://buy.stripe.com/cN2cPC6ek7RCbjGdQU'; + +export const getLifetimeLink = () => + process.env.NODE_ENV === 'development' ? + 'https://buy.stripe.com/test_14kbM82fW43v6PeeUV' : + 'https://buy.stripe.com/28obLyeKQ3BmcnK8wB';