File tree Expand file tree Collapse file tree 6 files changed +17
-7
lines changed Expand file tree Collapse file tree 6 files changed +17
-7
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" ;
33import { DashboardHeader } from "../components/Header/DashboardHeader" ;
4+ import { UnlimitedWalletsBanner } from "components/notices/AnnouncementBanner" ;
45
56export 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 >
Original file line number Diff line number Diff line change @@ -6,12 +6,14 @@ import { AppFooter } from "@/components/blocks/app-footer";
66import type React from "react" ;
77import { TWAutoConnect } from "../components/autoconnect" ;
88import { AccountHeader } from "./components/AccountHeader" ;
9+ import { UnlimitedWalletsBanner } from "components/notices/AnnouncementBanner" ;
910
1011export 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" >
Original file line number Diff line number Diff 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 />
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121} from "@/components/ui/select" ;
2222import { cn } from "@/lib/utils" ;
2323import { useAccount } from "@3rdweb-sdk/react/hooks/useApi" ;
24- import { Checkbox } from "@chakra- ui/react " ;
24+ import { Checkbox } from "@/components/ ui/checkbox " ;
2525import { zodResolver } from "@hookform/resolvers/zod" ;
2626import * as RadioGroupPrimitive from "@radix-ui/react-radio-group" ;
2727import { 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 } }
Original file line number Diff line number Diff line change 11import { DashboardTypeCookieSetter } from "@/components/DashboardTypeCookieSetter" ;
22import { AppFooter } from "@/components/blocks/app-footer" ;
33import { TWAutoConnect } from "../../components/autoconnect" ;
4+ import { UnlimitedWalletsBanner } from "components/notices/AnnouncementBanner" ;
45
56export 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 />
You can’t perform that action at this time.
0 commit comments