The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
chore(billing): comment out unused metered billing references in Sett… (#14170)
Antoine Moreauxdfa73e9e7ae0
diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsxindex ea6da5d2f4c..25e0f6733e6 100644--- a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx+++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx@@ -11,8 +11,8 @@ import { SubscriptionStatus } from '~/generated/graphql';import { formatAmount } from '~/utils/format/formatAmount';import { formatNumber } from '~/utils/format/number';import { SubscriptionInfoContainer } from '@/billing/components/SubscriptionInfoContainer';-import { useListAvailableMeteredBillingPricesQuery } from '~/generated-metadata/graphql';-import { MeteredPriceSelector } from '@/billing/components/internal/MeteredPriceSelector';+// import { useListAvailableMeteredBillingPricesQuery } from '~/generated-metadata/graphql';+// import { MeteredPriceSelector } from '@/billing/components/internal/MeteredPriceSelector';import { type CurrentWorkspace } from '@/auth/states/currentWorkspaceState';import {getIntervalLabel,@@ -37,8 +37,8 @@ export const SettingsBillingCreditsSection = ({const { usedCredits, grantedCredits, unitPriceCents } =useGetWorkflowNodeExecutionUsage();- const { data: meteredBillingPrices } =- useListAvailableMeteredBillingPricesQuery();+ // const { data: meteredBillingPrices } =+ // useListAvailableMeteredBillingPricesQuery();const progressBarValue = (usedCredits / grantedCredits) * 100;@@ -83,20 +83,20 @@ export const SettingsBillingCreditsSection = ({)}</SubscriptionInfoContainer></Section>- <Section>- {meteredBillingPrices?.listAvailableMeteredBillingPrices && (- <MeteredPriceSelector- billingSubscriptionItems={- currentWorkspace.currentBillingSubscription- ?.billingSubscriptionItems ?? []- }- meteredBillingPrices={- meteredBillingPrices.listAvailableMeteredBillingPrices- }- isTrialing={isTrialing}- />- )}- </Section>+ {/*<Section>*/}+ {/* {meteredBillingPrices?.listAvailableMeteredBillingPrices && (*/}+ {/* <MeteredPriceSelector*/}+ {/* billingSubscriptionItems={*/}+ {/* currentWorkspace.currentBillingSubscription*/}+ {/* ?.billingSubscriptionItems ?? []*/}+ {/* }*/}+ {/* meteredBillingPrices={*/}+ {/* meteredBillingPrices.listAvailableMeteredBillingPrices*/}+ {/* }*/}+ {/* isTrialing={isTrialing}*/}+ {/* />*/}+ {/* )}*/}+ {/*</Section>*/}</>);};