From 4fbcbdba6f6dcaafde56240aa3f0f9d0556f2b00 Mon Sep 17 00:00:00 2001 From: veganbeef Date: Tue, 1 Jul 2025 18:45:32 -0700 Subject: [PATCH] fix: wallet tab --- package.json | 2 +- src/components/ui/tabs/WalletTab.tsx | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 8330935..bce1b14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neynar/create-farcaster-mini-app", - "version": "1.5.1", + "version": "1.5.2", "type": "module", "private": false, "access": "public", diff --git a/src/components/ui/tabs/WalletTab.tsx b/src/components/ui/tabs/WalletTab.tsx index 0d2d08d..bf439c7 100644 --- a/src/components/ui/tabs/WalletTab.tsx +++ b/src/components/ui/tabs/WalletTab.tsx @@ -1,7 +1,7 @@ "use client"; import { useCallback, useMemo, useState, useEffect } from "react"; -import { useAccount, useSendTransaction, useSignTypedData, useWaitForTransactionReceipt, useDisconnect, useConnect, useSwitchChain, useChainId } from "wagmi"; +import { useAccount, useSendTransaction, useSignTypedData, useWaitForTransactionReceipt, useDisconnect, useConnect, useSwitchChain, useChainId, type Connector } from "wagmi"; import { useWallet as useSolanaWallet } from '@solana/wallet-adapter-react'; import { base, degen, mainnet, optimism, unichain } from "wagmi/chains"; import { Button } from "../Button"; @@ -61,10 +61,13 @@ function WalletStatus({ address, chainId }: WalletStatusProps) { interface ConnectionControlsProps { isConnected: boolean; - context: any; - connect: any; - connectors: readonly any[]; - disconnect: any; + context: { + user?: { fid?: number }; + client?: unknown; + } | null; + connect: (args: { connector: Connector }) => void; + connectors: readonly Connector[]; + disconnect: () => void; } /**