From 42e9beab0c2773c56df593217a62c3a750cf3736 Mon Sep 17 00:00:00 2001 From: chronark Date: Thu, 20 Mar 2025 08:14:36 +0100 Subject: [PATCH] fix: remove outdated and wrong quota check we now have proper quotas, so this check is redundand. If a workspace is disabled, there is already a warning in the root layout to contact us. --- .../apis/_components/api-list-client.tsx | 23 ------------------- apps/dashboard/app/(app)/apis/page.tsx | 3 +-- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/apps/dashboard/app/(app)/apis/_components/api-list-client.tsx b/apps/dashboard/app/(app)/apis/_components/api-list-client.tsx index 2c9812af0a..7e460b88ec 100644 --- a/apps/dashboard/app/(app)/apis/_components/api-list-client.tsx +++ b/apps/dashboard/app/(app)/apis/_components/api-list-client.tsx @@ -15,35 +15,12 @@ import { CreateApiButton } from "./create-api-button"; export const ApiListClient = ({ initialData, - unpaid, }: { initialData: ApisOverviewResponse; - unpaid: boolean; }) => { const [isSearching, setIsSearching] = useState(false); const [apiList, setApiList] = useState(initialData.apiList); - if (unpaid) { - return ( - - - Upgrade your plan - - Team workspaces is a paid feature. Please switch to a paid plan to continue using it. - - - - - - - - - ); - } - return (
diff --git a/apps/dashboard/app/(app)/apis/page.tsx b/apps/dashboard/app/(app)/apis/page.tsx index 161221a3f4..fceb8221b9 100644 --- a/apps/dashboard/app/(app)/apis/page.tsx +++ b/apps/dashboard/app/(app)/apis/page.tsx @@ -29,12 +29,11 @@ export default async function ApisOverviewPage(props: Props) { workspaceId: workspace.id, limit: DEFAULT_OVERVIEW_FETCH_LIMIT, }); - const unpaid = workspace.tenantId.startsWith("org_") && workspace.plan === "free"; return (
- +
); }