Skip to content

Commit 90ac1d0

Browse files
committed
fix: remove banner
1 parent e9b6ebc commit 90ac1d0

File tree

6 files changed

+17
-7
lines changed

6 files changed

+17
-7
lines changed

apps/dashboard/src/app/(dashboard)/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { AppFooter } from "@/components/blocks/app-footer";
22
import { ErrorProvider } from "../../contexts/error-handler";
33
import { DashboardHeader } from "../components/Header/DashboardHeader";
4+
import { UnlimitedWalletsBanner } from "components/notices/AnnouncementBanner";
45

56
export default function DashboardLayout(props: { children: React.ReactNode }) {
67
return (
78
<ErrorProvider>
9+
<UnlimitedWalletsBanner />
810
<div className="flex min-h-screen flex-col bg-background">
911
<DashboardHeader />
1012
<div className="flex grow flex-col">{props.children}</div>

apps/dashboard/src/app/account/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ import { AppFooter } from "@/components/blocks/app-footer";
66
import type React from "react";
77
import { TWAutoConnect } from "../components/autoconnect";
88
import { AccountHeader } from "./components/AccountHeader";
9+
import { UnlimitedWalletsBanner } from "components/notices/AnnouncementBanner";
910

1011
export default async function AccountLayout(props: {
1112
children: React.ReactNode;
1213
}) {
1314
return (
1415
<div className="flex min-h-screen flex-col bg-background">
16+
<UnlimitedWalletsBanner />
1517
<div className="flex grow flex-col">
1618
<HeaderAndNav />
1719
<div className="border-border border-b py-10">

apps/dashboard/src/app/layout.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ export default function RootLayout({
7171
)}
7272
>
7373
<PostHogPageView />
74-
<UnlimitedWalletsBanner />
7574
<AppRouterProviders>{children}</AppRouterProviders>
7675
<Toaster richColors />
7776
<DashboardRouterTopProgressBar />

apps/dashboard/src/app/login/page.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,14 @@ function CustomConnectEmmbed() {
6161

6262
const email = profiles.find((profile) => profile.details.email)?.details
6363
.email;
64-
router.replace(
65-
`/onboarding?${email ? `email=${email}` : ""}${nextSearchParam && isValidRedirectPath(nextSearchParam) ? `${account.data.email ? "&" : ""}next=${nextSearchParam}` : ""}`,
66-
);
64+
const params = new URLSearchParams();
65+
if (email) {
66+
params.append("email", email);
67+
}
68+
if (nextSearchParam) {
69+
params.append("next", nextSearchParam);
70+
}
71+
router.replace(`/onboarding?${params.toString()}`);
6772
return;
6873
}
6974

apps/dashboard/src/app/onboarding/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
} from "@/components/ui/select";
2222
import { cn } from "@/lib/utils";
2323
import { useAccount } from "@3rdweb-sdk/react/hooks/useApi";
24-
import { Checkbox } from "@chakra-ui/react";
24+
import { Checkbox } from "@/components/ui/checkbox";
2525
import { zodResolver } from "@hookform/resolvers/zod";
2626
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
2727
import { RadioGroup } from "@radix-ui/react-radio-group";
@@ -481,8 +481,8 @@ export default function OnboardingPage({
481481
event.preventDefault(); // Prevent default behavior
482482
const newInterests = isChecked
483483
? checkedInterests.filter(
484-
(key) => key !== interest.key,
485-
)
484+
(key) => key !== interest.key,
485+
)
486486
: [...checkedInterests, interest.key];
487487
form.setValue("interests", newInterests);
488488
}}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
import { DashboardTypeCookieSetter } from "@/components/DashboardTypeCookieSetter";
22
import { AppFooter } from "@/components/blocks/app-footer";
33
import { TWAutoConnect } from "../../components/autoconnect";
4+
import { UnlimitedWalletsBanner } from "components/notices/AnnouncementBanner";
45

56
export default function RootTeamLayout(props: {
67
children: React.ReactNode;
78
params: { team_slug: string };
89
}) {
910
return (
1011
<div className="flex min-h-screen flex-col">
12+
<UnlimitedWalletsBanner />
1113
<div className="flex grow flex-col">{props.children}</div>
1214
<TWAutoConnect />
1315
<AppFooter />

0 commit comments

Comments
 (0)