From 030349bb923bf7949972c4080e8ce1a36417836e Mon Sep 17 00:00:00 2001 From: Yash094 <67926590+Yash094@users.noreply.github.com> Date: Thu, 4 Sep 2025 15:29:59 +0000 Subject: [PATCH] remove looking for engine on project view page (#7981) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ## PR-Codex overview This PR focuses on refining the rendering logic in the `page.tsx` file for a specific team page, particularly around the display of a billing plan alert and the conditions under which it is shown. ### Detailed summary - Replaced a conditional rendering of the free billing plan alert from a ternary operator to a logical AND (`&&`) operator. - Removed the `DismissibleAlert` component that provided information about engines and projects. - Kept the `Changelog` component intact. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` ## Summary by CodeRabbit * **Bug Fixes** * Resolved an issue where teams on paid plans saw an unnecessary alert on the team page. Paid teams will no longer see this message. * Free plan teams continue to see the upgrade banner as before. --- .../src/app/(app)/team/[team_slug]/(team)/page.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/page.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/page.tsx index fe9a998eb5a..032e98338a0 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/page.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/(team)/page.tsx @@ -4,7 +4,6 @@ import { getInAppWalletUsage } from "@/api/analytics"; import { getAuthToken } from "@/api/auth-token"; import { getProjects, type Project } from "@/api/project/projects"; import { getTeamBySlug } from "@/api/team/get-team"; -import { DismissibleAlert } from "@/components/blocks/dismissible-alert"; import { getClientThirdwebClient } from "@/constants/thirdweb-client.client"; import { loginRedirect } from "@/utils/redirects"; import { Changelog } from "./_components/Changelog"; @@ -63,15 +62,8 @@ export default async function Page(props: { team={team} /> - {team.billingPlan === "free" ? ( + {team.billingPlan === "free" && ( - ) : ( - )}