Skip to content

Commit 030349b

Browse files
committed
remove looking for engine on project view page (#7981)
<!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" https://linear.app/thirdweb/issue/BLD-238/remove-looking-for-engine-hint-from-project-view ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## 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}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## 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. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 17d40af commit 030349b

File tree

1 file changed

+1
-9
lines changed
  • apps/dashboard/src/app/(app)/team/[team_slug]/(team)

1 file changed

+1
-9
lines changed

apps/dashboard/src/app/(app)/team/[team_slug]/(team)/page.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { getInAppWalletUsage } from "@/api/analytics";
44
import { getAuthToken } from "@/api/auth-token";
55
import { getProjects, type Project } from "@/api/project/projects";
66
import { getTeamBySlug } from "@/api/team/get-team";
7-
import { DismissibleAlert } from "@/components/blocks/dismissible-alert";
87
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
98
import { loginRedirect } from "@/utils/redirects";
109
import { Changelog } from "./_components/Changelog";
@@ -63,15 +62,8 @@ export default async function Page(props: {
6362
team={team}
6463
/>
6564

66-
{team.billingPlan === "free" ? (
65+
{team.billingPlan === "free" && (
6766
<FreePlanUpsellBannerUI highlightPlan="growth" teamSlug={team.slug} />
68-
) : (
69-
<DismissibleAlert
70-
preserveState={true}
71-
description="Engines, contracts, project settings, and more are now managed within projects. Open or create a project to access them."
72-
localStorageId={`${team.id}-engines-alert`}
73-
title="Looking for Engines?"
74-
/>
7567
)}
7668

7769
<Changelog />

0 commit comments

Comments
 (0)