fix: wallet tab

This commit is contained in:
veganbeef 2025-07-01 18:45:32 -07:00
parent 1093eb64a1
commit 4fbcbdba6f
No known key found for this signature in database
2 changed files with 9 additions and 6 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@neynar/create-farcaster-mini-app",
"version": "1.5.1",
"version": "1.5.2",
"type": "module",
"private": false,
"access": "public",

View File

@ -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;
}
/**