@@ -11,7 +11,6 @@ import { Alert, AlertDescription, AlertTitle } from '@/components/v1/ui/alert';
1111import { Spinner } from '@/components/v1/ui/loading' ;
1212import { Separator } from '@/components/v1/ui/separator' ;
1313import useCloud from '@/hooks/use-cloud' ;
14- import useControlPlane from '@/hooks/use-control-plane' ;
1514import { useCurrentTenantId } from '@/hooks/use-tenant' ;
1615import { queries , TenantMemberRole , TenantResourceLimit } from '@/lib/api' ;
1716import { useAppContext } from '@/providers/app-context' ;
@@ -27,10 +26,8 @@ export default function ResourceLimits() {
2726 const isOwner = membership === TenantMemberRole . OWNER ;
2827
2928 const { cloud, isCloudEnabled } = useCloud ( ) ;
30- const { isControlPlaneEnabled } = useControlPlane ( ) ;
3129
32- const billingEnabled =
33- isControlPlaneEnabled && isCloudEnabled && ! ! cloud ?. canBill ;
30+ const billingEnabled = isCloudEnabled && ! ! cloud ?. canBill ;
3431 const billingSyncRefetchInterval = billingEnabled
3532 ? BILLING_SYNC_REFETCH_INTERVAL_MS
3633 : false ;
@@ -41,13 +38,11 @@ export default function ResourceLimits() {
4138 } ) ;
4239
4340 const billingState = useQuery ( {
44- ...queries . controlPlane . billing ( tenantId ) ,
41+ ...queries . cloud . billing ( tenantId ) ,
4542 enabled : billingEnabled ,
4643 refetchInterval : billingSyncRefetchInterval ,
4744 } ) ;
4845
49- const isDedicatedCloud = ! isControlPlaneEnabled && ! ! cloud ?. canBill ;
50-
5146 const resourceLimits = resourcePolicyQuery . data ?. limits || [ ] ;
5247
5348 const resourceLimitColumns = useMemo (
@@ -119,7 +114,7 @@ export default function ResourceLimits() {
119114 description = "Review billing details and the resource limits currently applied to this tenant."
120115 />
121116
122- { billingEnabled && ! isDedicatedCloud && (
117+ { billingEnabled && (
123118 < >
124119 { isOwner ? (
125120 < Subscription
@@ -142,16 +137,6 @@ export default function ResourceLimits() {
142137 </ >
143138 ) }
144139
145- { isDedicatedCloud && (
146- < Alert variant = "destructive" >
147- < ExclamationTriangleIcon className = "size-4" />
148- < AlertTitle > Dedicated Cloud</ AlertTitle >
149- < AlertDescription >
150- Please contact us to discuss your plan.
151- </ AlertDescription >
152- </ Alert >
153- ) }
154-
155140 { resourceLimits . length > 0 ? (
156141 < SimpleTable
157142 columns = { resourceLimitColumns }
0 commit comments