diff --git a/frontend/app/src/pages/main/v1/managed-workers/index.tsx b/frontend/app/src/pages/main/v1/managed-workers/index.tsx index 941e6adf34..a0a00764a9 100644 --- a/frontend/app/src/pages/main/v1/managed-workers/index.tsx +++ b/frontend/app/src/pages/main/v1/managed-workers/index.tsx @@ -2,6 +2,14 @@ import { BillingRequired } from './components/billing-required'; import { ManagedWorkersTable } from './components/managed-workers-table'; import { MonthlyUsageCard } from './components/monthly-usage-card'; import { Button } from '@/components/v1/ui/button'; +import { + Dialog, + DialogContent, + DialogDescription, + DialogFooter, + DialogHeader, + DialogTitle, +} from '@/components/v1/ui/dialog'; import { Spinner } from '@/components/v1/ui/loading'; import { Separator } from '@/components/v1/ui/separator'; import { useCurrentTenantId, useTenantDetails } from '@/hooks/use-tenant'; @@ -118,44 +126,6 @@ export default function ManagedWorkers() { } }; - const UpgradeModal = () => { - if (!showUpgradeModal) { - return null; - } - - return ( - // TODO use correct modal component -
-
-

- Plan Upgrade Required -

-

- You've reached the maximum number of services ({workerPoolCount}/ - {getWorkerPoolLimit()}) allowed on your current plan. Upgrade to - create more services. -

-
- - - - -
-
-
- ); - }; - return (
@@ -194,7 +164,34 @@ export default function ManagedWorkers() { />
- + + + + Plan Upgrade Required + + You've reached the maximum number of services ({workerPoolCount}/ + {getWorkerPoolLimit()}) allowed on your current plan. Upgrade to + create more services. + + + + + + + + + + ); }