diff --git a/apps/dashboard/src/@/components/tx-button/MismatchButton.tsx b/apps/dashboard/src/@/components/tx-button/MismatchButton.tsx index 5882ff0e7f6..edb78f5e9fd 100644 --- a/apps/dashboard/src/@/components/tx-button/MismatchButton.tsx +++ b/apps/dashboard/src/@/components/tx-button/MismatchButton.tsx @@ -18,7 +18,7 @@ import { } from "thirdweb"; import { type Chain, type ChainMetadata, localhost } from "thirdweb/chains"; import { - PayEmbed, + CheckoutWidget, useActiveAccount, useActiveWallet, useActiveWalletChain, @@ -29,7 +29,6 @@ import { import { privateKeyToAccount, type Wallet } from "thirdweb/wallets"; import { apiServerProxy } from "@/actions/proxies"; import { Button } from "@/components/ui/button"; -import { DynamicHeight } from "@/components/ui/DynamicHeight"; import { Dialog, DialogContent, @@ -251,39 +250,34 @@ export const MismatchButton = forwardRef< > - - {dialog === "no-funds" && ( - setDialog(undefined)} - openPayModal={() => { - setDialog("pay"); - }} - /> - )} + {dialog === "no-funds" && ( + setDialog(undefined)} + openPayModal={() => { + setDialog("pay"); + }} + /> + )} - {dialog === "pay" && ( - - )} - + {dialog === "pay" && account && ( + + )} @@ -362,11 +356,7 @@ function NoFundsDialogContent(props: { (x) => x.enabled && x.service === "pay", ) ? ( // pay case - ) : // no funds options available diff --git a/apps/dashboard/src/@/components/ui/DynamicHeight.tsx b/apps/dashboard/src/@/components/ui/DynamicHeight.tsx index 4835281db51..535be848aaa 100644 --- a/apps/dashboard/src/@/components/ui/DynamicHeight.tsx +++ b/apps/dashboard/src/@/components/ui/DynamicHeight.tsx @@ -17,7 +17,7 @@ export function DynamicHeight(props: { boxSizing: "border-box", height: height ? `${height}px` : "auto", overflow: "hidden", - transition: props.transition || "height 250ms ease", + transition: props.transition || "height 220ms ease", }} >