diff --git a/web/src/app/(app)/pricing/components/pricePlanList.tsx b/web/src/app/(app)/pricing/components/pricePlanList.tsx index 19f255b..89f4358 100644 --- a/web/src/app/(app)/pricing/components/pricePlanList.tsx +++ b/web/src/app/(app)/pricing/components/pricePlanList.tsx @@ -1,12 +1,6 @@ import { checkMarkIcon, crossMarkIcon } from "../const/Icon"; import { cn } from "@/lib/utils"; -import { - getPricing, - getSubscription, - getSubscriptionItem, - getUsage, - setUsage, -} from "@/server/linkToPricing"; +import { getPricing } from "@/server/linkToPricing"; import { useEffect, useState } from "react"; type Tier = { @@ -28,7 +22,6 @@ enum TierPriority { export default function PricingList() { const [productTiers, setProductTiers] = useState(); - const [userUsageId, setUserUsageId] = useState(0); useEffect(() => { (async () => { @@ -85,52 +78,12 @@ export default function PricingList() { })(); }, []); - useEffect(() => { - (async () => { - // const currentUser = await getUserData(); - - const userUsage = await getUsage(); - const userSubscription = await getSubscription(); - - // const setUserUsage = await setUsage(236561, 10); - - // console.log(currentUser); - console.log( - userSubscription.data[0].attributes.first_subscription_item.id - ); - })(); - }, []); - - const setUserUsage = async (id: number, quantity: number) => { - try { - const response = await setUsage(id, quantity); - console.log(response); - } catch (error) { - console.error(error); - } - }; - return (

Pricing

- -
- - -
-

The right price for you, whoever you are