anza-xyz / wallet-standard

Solana extensions to the Wallet Standard.
Apache License 2.0
79 stars 42 forks source link

A `useWallets()` hook that only vends handles #53

Closed steveluscher closed 2 months ago

steveluscher commented 3 months ago

This is the first React hook in the new Wallet Standard React package.

function MyComponent() {
    const bitcoinWallets = useWallets().filter(({chains}) =>
        chains.some(chain => chain.startsWith('bitcoin:')),
    );
    return (
        <ul>
            {bitcoinWallets.map(
                ({name}) => <li key={name}>{name}</li>
            )}
        </ul>
    );
}

Characteristcs:

steveluscher commented 3 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @steveluscher and the rest of your teammates on Graphite Graphite

steveluscher commented 2 months ago

Merge activity