Hey is a decentralized and permissionless social media app built with Lens Protocol 🌿

feat: update Transfer component to change button action for insufficient balance and update link text

yoginth.com 42d6e567 872e8f84

verified
+3 -13
+3 -13
apps/web/src/components/Shared/Account/TopUp/Transfer.tsx
··· 11 11 useState 12 12 } from "react"; 13 13 import { toast } from "sonner"; 14 - import { type Hex, zeroAddress } from "viem"; 14 + import type { Hex } from "viem"; 15 15 import { useAccount, useWaitForTransactionReceipt } from "wagmi"; 16 16 import Skeleton from "@/components/Shared/Skeleton"; 17 17 import { Button, Card, Input, Spinner } from "@/components/Shared/UI"; ··· 209 209 ) : Number(tokenBalance) < amount ? ( 210 210 <Button 211 211 className="w-full" 212 - onClick={() => { 213 - const params = new URLSearchParams({ 214 - inputChain: "lens", 215 - isExactOut: "false", 216 - outToken: token?.contractAddress ?? zeroAddress, 217 - utm_medium: "sites", 218 - utm_source: "hey.xyz" 219 - }); 220 - 221 - window.open(`https://oku.trade/?${params.toString()}`, "_blank"); 222 - }} 212 + onClick={() => window.open("https://lens.xyz/bridge", "_blank")} 223 213 > 224 - <span>Buy on Oku.trade</span> 214 + <span>Bridge to Lens</span> 225 215 <ArrowUpRightIcon className="size-4" /> 226 216 </Button> 227 217 ) : (