Skip to content

Commit 2beee9c

Browse files
authored
Merge branch 'main' into gi/portal-knowledge-base
2 parents 51434ea + 9f1ca54 commit 2beee9c

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import { getTeamBySlug } from "@/api/team";
2+
import { Button } from "@/components/ui/button";
23
import { PosthogIdentifierServer } from "components/wallets/PosthogIdentifierServer";
4+
import { ArrowRightIcon } from "lucide-react";
5+
import Link from "next/link";
36
import { redirect } from "next/navigation";
47
import { Suspense } from "react";
58
import { EnsureValidConnectedWalletLoginServer } from "../../components/EnsureValidConnectedWalletLogin/EnsureValidConnectedWalletLoginServer";
@@ -28,6 +31,10 @@ export default async function RootTeamLayout(props: {
2831
return (
2932
<div className="flex min-h-dvh flex-col">
3033
<div className="flex grow flex-col">
34+
{team.billingPlan === "starter_legacy" && (
35+
<StarterLegacyDiscontinuedBanner teamSlug={team_slug} />
36+
)}
37+
3138
{team.billingStatus === "pastDue" && (
3239
<PastDueBanner teamSlug={team_slug} />
3340
)}
@@ -50,3 +57,31 @@ export default async function RootTeamLayout(props: {
5057
</div>
5158
);
5259
}
60+
61+
function StarterLegacyDiscontinuedBanner(props: {
62+
teamSlug: string;
63+
}) {
64+
return (
65+
<div className="border-red-600 border-b bg-red-50 px-4 py-6 text-red-800 dark:border-red-700 dark:bg-red-950 dark:text-red-100">
66+
<div className="text-center">
67+
<p>Starter legacy plans are being discontinued on May 31, 2025</p>
68+
<p>
69+
To prevent service interruptions and losing access to your current
70+
features select a new plan
71+
</p>
72+
<Button
73+
asChild
74+
size="sm"
75+
className="mt-3 gap-2 border border-red-600 bg-red-100 text-red-800 hover:bg-red-200 dark:border-red-700 dark:bg-red-900 dark:text-red-100 dark:hover:bg-red-800"
76+
>
77+
<Link
78+
href={`/team/${props.teamSlug}/~/settings/billing?showPlans=true`}
79+
>
80+
Select a new plan
81+
<ArrowRightIcon className="size-4" />
82+
</Link>
83+
</Button>
84+
</div>
85+
</div>
86+
);
87+
}

apps/portal/src/app/Header.tsx

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,21 @@ export const connectLinks: Array<{
117117
},
118118
] as const;
119119

120+
const apisLinks = [
121+
{
122+
name: "Insight",
123+
href: "https://insight-api.thirdweb.com/reference",
124+
},
125+
{
126+
name: "Engine Cloud",
127+
href: "https://engine.thirdweb.com/reference#tag/write",
128+
},
129+
{
130+
name: "Universal Bridge",
131+
href: "https://bridge.thirdweb.com/reference",
132+
},
133+
];
134+
120135
const supportLinks = [
121136
{
122137
name: "Get thirdweb support",
@@ -217,7 +232,15 @@ export function Header() {
217232
<DocSearch variant="search" />
218233
</div>
219234

220-
<div className="xl:px-2">
235+
<div className="xl:px-1">
236+
<DropdownLinks
237+
links={apisLinks}
238+
onLinkClick={() => setShowBurgerMenu(false)}
239+
category="APIs"
240+
/>
241+
</div>
242+
243+
<div className="xl:px-1">
221244
<DropdownLinks
222245
links={supportLinks}
223246
onLinkClick={() => setShowBurgerMenu(false)}

apps/portal/src/app/connect/pay/customization/connectbutton/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ You can specify which onramp provider to present to your users. By default, we c
9595
client={client}
9696
detailsModal={{
9797
payOptions: {
98-
preferredProvider: "STRIPE" | "KADO" | "TRANSAK",
98+
preferredProvider: "STRIPE" | "TRANSAK" | "COINBASE",
9999
},
100100
}}
101101
/>

0 commit comments

Comments
 (0)