chore(billing): comment out unused metered billing references in Sett… (#14170)
…ingsBillingCreditsSection
This commit is contained in:
+18
-18
@@ -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>*/}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user