mirror of
https://github.com/neynarxyz/create-farcaster-mini-app.git
synced 2025-11-16 08:08:56 -05:00
fix: wallet tab
This commit is contained in:
parent
1093eb64a1
commit
4fbcbdba6f
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@neynar/create-farcaster-mini-app",
|
"name": "@neynar/create-farcaster-mini-app",
|
||||||
"version": "1.5.1",
|
"version": "1.5.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": false,
|
"private": false,
|
||||||
"access": "public",
|
"access": "public",
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { useCallback, useMemo, useState, useEffect } from "react";
|
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 { useWallet as useSolanaWallet } from '@solana/wallet-adapter-react';
|
||||||
import { base, degen, mainnet, optimism, unichain } from "wagmi/chains";
|
import { base, degen, mainnet, optimism, unichain } from "wagmi/chains";
|
||||||
import { Button } from "../Button";
|
import { Button } from "../Button";
|
||||||
@ -61,10 +61,13 @@ function WalletStatus({ address, chainId }: WalletStatusProps) {
|
|||||||
|
|
||||||
interface ConnectionControlsProps {
|
interface ConnectionControlsProps {
|
||||||
isConnected: boolean;
|
isConnected: boolean;
|
||||||
context: any;
|
context: {
|
||||||
connect: any;
|
user?: { fid?: number };
|
||||||
connectors: readonly any[];
|
client?: unknown;
|
||||||
disconnect: any;
|
} | null;
|
||||||
|
connect: (args: { connector: Connector }) => void;
|
||||||
|
connectors: readonly Connector[];
|
||||||
|
disconnect: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user