File tree Expand file tree Collapse file tree 12 files changed +55
-40
lines changed Expand file tree Collapse file tree 12 files changed +55
-40
lines changed Original file line number Diff line number Diff line change 11import { AppFooter } from "@/components/blocks/app-footer" ;
22import { ErrorProvider } from "../../contexts/error-handler" ;
3- import { TryTeamsUIBanner } from "../components/DashboardTypeBanner" ;
43import { DashboardHeader } from "../components/Header/DashboardHeader" ;
54
65export default function DashboardLayout ( props : { children : React . ReactNode } ) {
76 return (
87 < ErrorProvider >
98 < div className = "flex min-h-screen flex-col bg-background" >
10- < TryTeamsUIBanner />
119 < DashboardHeader />
1210 < main className = "grow" > { props . children } </ main >
1311 < AppFooter />
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { DashboardTypeCookieSetter } from "@/components/DashboardTypeCookieSette
44import { SidebarLayout } from "@/components/blocks/SidebarLayout" ;
55import { AppFooter } from "@/components/blocks/app-footer" ;
66import type React from "react" ;
7- import { TeamsUIBanner } from "../components/DashboardTypeBanner" ;
87import { TWAutoConnect } from "../components/autoconnect" ;
98import { AccountHeader } from "./components/AccountHeader" ;
109
@@ -13,7 +12,6 @@ export default async function AccountLayout(props: {
1312} ) {
1413 return (
1514 < div className = "flex min-h-screen flex-col bg-background" >
16- < TeamsUIBanner />
1715 < div className = "flex grow flex-col" >
1816 < HeaderAndNav />
1917 < div className = "border-border border-b py-10" >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { NavLink } from "@/components/ui/NavLink" ;
2+ import { Badge } from "@/components/ui/badge" ;
23import { Button } from "@/components/ui/button" ;
34import { CustomConnectWallet } from "@3rdweb-sdk/react/components/connect-wallet" ;
45import { CmdKSearch } from "components/cmd-k-search" ;
@@ -25,6 +26,19 @@ export const DashboardHeader: React.FC = () => {
2526
2627 { /* Right */ }
2728 < div className = "flex items-center gap-2" >
29+ < NavLink
30+ href = "/team"
31+ tracking = { {
32+ category : "header" ,
33+ action : "click" ,
34+ label : "team-dashboard" ,
35+ } }
36+ className = "hidden items-center gap-1.5 px-2.5 text-muted-foreground text-sm hover:text-foreground md:inline-flex"
37+ activeClassName = "text-foreground"
38+ >
39+ Team Dashboard < Badge className = "px-1.5" > BETA </ Badge >
40+ </ NavLink >
41+
2842 < div className = "hidden gap-2 md:flex" >
2943 < Suspense fallback = { null } >
3044 < CreditsButton />
Original file line number Diff line number Diff line change 1+ import { ToolTipLabel } from "@/components/ui/tooltip" ;
12import type { Account } from "@3rdweb-sdk/react/hooks/useApi" ;
3+ import { ArrowUpDownIcon } from "lucide-react" ;
24import Link from "next/link" ;
35import type React from "react" ;
46import { ResourcesDropdownButton } from "./ResourcesDropdownButton" ;
@@ -11,6 +13,23 @@ export function SecondaryNav(props: {
1113} ) {
1214 return (
1315 < div className = "flex items-center gap-6" >
16+ < ToolTipLabel
17+ label = {
18+ < span >
19+ You are exploring the new dashboard. < br /> Click here to go back to
20+ the legacy dashboard.
21+ </ span >
22+ }
23+ >
24+ < Link
25+ href = "/dashboard"
26+ className = "inline-flex items-center gap-1.5 text-muted-foreground text-sm hover:text-foreground"
27+ >
28+ < ArrowUpDownIcon className = "size-4" />
29+ Switch To Legacy Dashboard
30+ </ Link >
31+ </ ToolTipLabel >
32+
1433 < ResourcesDropdownButton />
1534
1635 < Link
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import PlausibleProvider from "next-plausible";
77import dynamic from "next/dynamic" ;
88import { Inter } from "next/font/google" ;
99import NextTopLoader from "nextjs-toploader" ;
10+ import { UnlimitedWalletsBanner } from "../components/notices/AnnouncementBanner" ;
1011import { PostHogProvider } from "./components/root-providers" ;
1112import { AppRouterProviders } from "./providers" ;
1213
@@ -70,6 +71,7 @@ export default function RootLayout({
7071 ) }
7172 >
7273 < PostHogPageView />
74+ < UnlimitedWalletsBanner />
7375 < AppRouterProviders > { children } </ AppRouterProviders >
7476 < Toaster richColors />
7577 < DashboardRouterTopProgressBar />
Original file line number Diff line number Diff line change 11import { DashboardTypeCookieSetter } from "@/components/DashboardTypeCookieSetter" ;
22import { AppFooter } from "@/components/blocks/app-footer" ;
3- import { TeamsUIBanner } from "../../components/DashboardTypeBanner" ;
43import { TWAutoConnect } from "../../components/autoconnect" ;
54
65export default function RootTeamLayout ( props : {
@@ -9,7 +8,6 @@ export default function RootTeamLayout(props: {
98} ) {
109 return (
1110 < div className = "flex min-h-screen flex-col" >
12- < TeamsUIBanner />
1311 < div className = "flex grow flex-col" > { props . children } </ div >
1412 < TWAutoConnect />
1513 < AppFooter />
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export function AnnouncementBanner(props: {
2929 category = "announcement"
3030 label = { props . trackingLabel }
3131 target = { props . href . startsWith ( "http" ) ? "_blank" : undefined }
32- className = "container flex cursor-pointer items-center gap-2 lg:justify-center"
32+ className = "!text-white container flex cursor-pointer items-center gap-2 lg:justify-center "
3333 >
34- < span className = "inline-block font-semibold text-white leading-normal hover:underline" >
34+ < span className = "inline-block font-semibold leading-normal hover:underline" >
3535 { props . label }
3636 </ span >
3737 < ChevronRightIcon className = "hidden size-5 opacity-80 lg:block" />
@@ -49,3 +49,13 @@ export function AnnouncementBanner(props: {
4949 </ div >
5050 ) ;
5151}
52+
53+ export function UnlimitedWalletsBanner ( ) {
54+ return (
55+ < AnnouncementBanner
56+ href = "/dashboard/settings/billing?coupon=FREEWALLETS"
57+ label = 'Get 12 months of unlimited in-app wallets by applying the "FREEWALLETS" coupon in the billing dashboard'
58+ trackingLabel = "unlimited-wallets"
59+ />
60+ ) ;
61+ }
Original file line number Diff line number Diff line change 11import { Flex , Icon } from "@chakra-ui/react" ;
22import { FiAlertCircle , FiCheckCircle , FiInfo } from "react-icons/fi" ;
3- import { Badge , Heading , Text } from "tw-components" ;
3+ import { Badge , Text } from "tw-components" ;
44
55interface BillingHeaderProps {
66 validPayment : boolean ;
@@ -12,10 +12,8 @@ export const BillingHeader: React.FC<BillingHeaderProps> = ({
1212 paymentVerification,
1313} ) => {
1414 return (
15- < Flex direction = "column" gap = { 2 } >
16- < Heading size = "title.lg" as = "h1" >
17- Billing Info
18- </ Heading >
15+ < Flex direction = "column" gap = { 1 } >
16+ < h1 className = "font-semibold text-xl tracking-tight" > Billing Info</ h1 >
1917
2018 < div className = "flex flex-row" >
2119 < Text size = "body.md" >
@@ -29,7 +27,7 @@ export const BillingHeader: React.FC<BillingHeaderProps> = ({
2927 py = { 1.5 }
3028 textTransform = "capitalize"
3129 >
32- < span className = "flex flex-row" >
30+ < span className = "flex flex-row gap-1.5 " >
3331 < Icon
3432 as = {
3533 validPayment
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const BillingPlan: React.FC<BillingPlanProps> = ({
2020} ) => {
2121 return (
2222 < Flex direction = { direction } gap = { 3 } >
23- < div className = "flex flex-row" >
23+ < div className = "flex flex-row items-center " >
2424 < Text color = { titleColor } size = { titleSize } >
2525 Your current plan is
2626 </ Text >
You can’t perform that action at this time.
0 commit comments