Skip to content

Commit

Permalink
Merge branch 'main' into saminacodes-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
saminacodes authored Dec 19, 2024
2 parents bbb22a4 + 8d17d05 commit 7674d13
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
5 changes: 4 additions & 1 deletion apps/dashboard/knip.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{
"$schema": "https://unpkg.com/knip@5/schema.json",
"next": true,
"ignore": ["src/@/components/ui/**"],
"ignore": [
"src/@/components/ui/**",
"src/components/notices/AnnouncementBanner.tsx"
],
"project": ["src/**"],
"ignoreBinaries": ["only-allow", "biome"],
"ignoreDependencies": ["@storybook/blocks", "@thirdweb-dev/service-utils"]
Expand Down
3 changes: 1 addition & 2 deletions apps/dashboard/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import PlausibleProvider from "next-plausible";
import { Inter } from "next/font/google";
import NextTopLoader from "nextjs-toploader";
import { Suspense } from "react";
import { UnlimitedWalletsBanner } from "../components/notices/AnnouncementBanner";
import { OpCreditsGrantedModalWrapperServer } from "../components/onboarding/OpCreditsGrantedModalWrapperServer";
import { EnsureValidConnectedWalletLoginServer } from "./components/EnsureValidConnectedWalletLogin/EnsureValidConnectedWalletLoginServer";
import { PostHogProvider } from "./components/root-providers";
Expand Down Expand Up @@ -72,7 +71,7 @@ export default function RootLayout({
fontSans.variable,
)}
>
<UnlimitedWalletsBanner />
{/* Banner goes here */}
<AppRouterProviders>
{children}
<Suspense fallback={null}>
Expand Down
12 changes: 1 addition & 11 deletions apps/dashboard/src/components/notices/AnnouncementBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useLocalStorage } from "hooks/useLocalStorage";
import { ChevronRightIcon, XIcon } from "lucide-react";
import { useSelectedLayoutSegment } from "next/navigation";

function AnnouncementBanner(props: {
export function AnnouncementBanner(props: {
href: string;
label: string;
trackingLabel: string;
Expand Down Expand Up @@ -56,13 +56,3 @@ function AnnouncementBanner(props: {
</div>
);
}

export function UnlimitedWalletsBanner() {
return (
<AnnouncementBanner
href="/team/~/~/settings/billing?coupon=FREEWALLETS24"
label='Claim 12 months of free in-app wallets. Use code "FREEWALLETS24". Redeem offer by December 31st!'
trackingLabel="unlimited-wallets"
/>
);
}
3 changes: 1 addition & 2 deletions apps/dashboard/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import type { ThirdwebNextPage } from "utils/types";
import chakraTheme from "../theme";
import "@/styles/globals.css";
import { DashboardRouterTopProgressBar } from "@/lib/DashboardRouter";
import { UnlimitedWalletsBanner } from "../components/notices/AnnouncementBanner";

const inter = interConstructor({
subsets: ["latin"],
Expand Down Expand Up @@ -260,7 +259,7 @@ const ConsoleApp = memo(function ConsoleApp({
/>

<DashboardRouterTopProgressBar />
<UnlimitedWalletsBanner />
{/* Banner goes here */}

<TailwindTheme>
<ChakraProvider theme={chakraThemeWithFonts}>
Expand Down

0 comments on commit 7674d13

Please sign in to comment.