anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.44k stars 906 forks source link

Where to import useWalletMultiButton in CustomConnectButton #964

Closed josephchung796 closed 3 weeks ago

josephchung796 commented 1 month ago

I tried to define my custom wallet connect button but it throws an error. image

image

Where should I import that hook from?

github-actions[bot] commented 3 weeks ago

Hi @josephchung796,

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Wallet Adapter itself.

Questions like yours deserve a purpose-built Q & A forum. Unless there exists evidence that this is a bug with Wallet Adapter itself, please post your question to the Solana Stack Exchange using this link:

https://solana.stackexchange.com/questions/ask


This automated message is a result of having added the ‘question’ tag.

adkstar commented 8 hours ago

I tried to define my custom wallet connect button but it throws an error. image

image

Where should I import that hook from?

You can import it from @solana/wallet-adapter-base-ui like

import { useWalletMultiButton } from '@solana/wallet-adapter-base-ui';