diff --git a/packages/nextjs/components/NewAccount/SuccessScreen.tsx b/packages/nextjs/components/NewAccount/SuccessScreen.tsx index 6fe3526..e6c69bf 100644 --- a/packages/nextjs/components/NewAccount/SuccessScreen.tsx +++ b/packages/nextjs/components/NewAccount/SuccessScreen.tsx @@ -24,6 +24,7 @@ const SuccessScreen: React.FC = ({ className, createdAccount const router = useAppRouter(); const [isReceiveModalOpen, setIsReceiveModalOpen] = useState(false); const [fundAddress, setFundAddress] = useState(""); + const [fundChainId, setFundChainId] = useState(undefined); const { currentAccount } = useAccountStore(); const { openManageAccountsWithExpand } = useSidebarStore(); @@ -35,8 +36,9 @@ const SuccessScreen: React.FC = ({ className, createdAccount router.goToDashboard(); }; - const handleFund = (address: string) => { + const handleFund = (address: string, chainId?: number) => { setFundAddress(address); + setFundChainId(chainId); setIsReceiveModalOpen(true); }; @@ -108,7 +110,7 @@ const SuccessScreen: React.FC = ({ className, createdAccount {/* Fund button */} + {/* Spacer to balance back button so title stays centered */} +
{/* Content */} diff --git a/packages/nextjs/components/ui/dialog.tsx b/packages/nextjs/components/ui/dialog.tsx index 5de353c..ca749b4 100644 --- a/packages/nextjs/components/ui/dialog.tsx +++ b/packages/nextjs/components/ui/dialog.tsx @@ -38,9 +38,11 @@ function DialogContent({ className, children, showCloseButton = true, + closeButtonClassName, ...props }: React.ComponentProps & { showCloseButton?: boolean; + closeButtonClassName?: string; }) { return ( @@ -58,7 +60,10 @@ function DialogContent({ {showCloseButton && ( diff --git a/packages/nextjs/scaffold.config.ts b/packages/nextjs/scaffold.config.ts index 45ed6b4..143f16f 100644 --- a/packages/nextjs/scaffold.config.ts +++ b/packages/nextjs/scaffold.config.ts @@ -82,8 +82,8 @@ const scaffoldConfig = { // If you want to use a different RPC for a specific network, you can add it here. // The key is the chain ID, and the value is the HTTP RPC URL rpcOverrides: { - // Example: - // [chains.mainnet.id]: "https://mainnet.buidlguidl.com", + // Default Alchemy key has no access to Base mainnet (403); public mainnet.base.org rate-limits (429). + [chains.base.id]: "https://base-rpc.publicnode.com", }, // This is ours WalletConnect's default project ID. // You can get your own at https://cloud.walletconnect.com