From 669a2494994b5bafcd800c9f6a6e8f25750467da Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 16 Aug 2025 06:09:16 -0400 Subject: [PATCH] removed wrong entry --- package.json | 3 +-- src/component/subscribe/Subscribe.jsx | 34 +++++++++++++++++---------- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index a8d64bf..06fc1ed 100644 --- a/package.json +++ b/package.json @@ -33,8 +33,7 @@ }, "scripts": { "start": "react-scripts start -e .env.development", - "build": "react-scripts start -e .env.development", - "build_real": "GENERATE_SOURCEMAP=false react-scripts build -e .env.production", + "build": "GENERATE_SOURCEMAP=false react-scripts build -e .env.production", "test": "react-scripts test", "eject": "react-scripts eject" }, diff --git a/src/component/subscribe/Subscribe.jsx b/src/component/subscribe/Subscribe.jsx index 964098f..4b216cc 100644 --- a/src/component/subscribe/Subscribe.jsx +++ b/src/component/subscribe/Subscribe.jsx @@ -6,6 +6,9 @@ import { useQuery } from '@tanstack/react-query'; import queryKeys from '../../services/queryKeys'; import siteLinks from "../../links/siteLinks"; import { Link, useNavigate } from 'react-router-dom' +import SubscribeNewCard from "./SubscribeNewCard"; +import SubscribePreviousCard from "./SubscribePreviousCard"; +import SubcribePaymentOptions from "./SubcribePaymentOptions"; export default function Subscribe() { const navigate = useNavigate() @@ -30,9 +33,11 @@ export default function Subscribe() { const otherSubscriptions = data?.data?.options console.log('urlData', data?.data) + const subscriptionSelection = otherSubscriptions?.starter; + return ( <> - + {isFetching ? <> @@ -46,41 +51,46 @@ export default function Subscribe() { :
-
+
Current Subscription(s)
-

{currentSubscription?.display_name}

+ {/*

{currentSubscription?.display_name}

*/} + + + + +
<> - {Object.entries(otherSubscriptions)?.map(([key, value]) => ( -
+ +
-
{value.display_name}
-

${value.monthly}

+
{subscriptionSelection.display_name}
+

${subscriptionSelection.monthly}

/ Monthly

    - {value?.items?.map(item =>( + {subscriptionSelection?.items?.map(item =>(
  • {item}
  • ))}
-
- -
+ {/*
*/} + {/* */} + {/*
*/}
- ))} +