Skip to content

feat(ui): add excludeWallets to walletsListConfiguration#315

Open
hiendv wants to merge 1 commit into
ton-connect:mainfrom
hiendv:wallets-list-exclude
Open

feat(ui): add excludeWallets to walletsListConfiguration#315
hiendv wants to merge 1 commit into
ton-connect:mainfrom
hiendv:wallets-list-exclude

Conversation

@hiendv
Copy link
Copy Markdown

@hiendv hiendv commented Jan 23, 2025

This PR allows walletsListConfiguration to be customized with excludeWallets. It mainly serves the purpose of hiding unsupported or unwanted wallets when connecting.

Exclude wallets

Pass wallet names to be excluded from the wallets list. Passed names will be used to filter out any wallet to be hidden.

Since the filtering with excludeWallets is processed last when applying wallet configuration, it should take precedence over includeWallets.

tonConnectUI.uiOptions = {
    walletsListConfiguration: {
        excludeWallets: ['xtonwallet']
    }
}

@hiendaovinh
Copy link
Copy Markdown

CC @thekiba

@Pasha8914
Copy link
Copy Markdown

@oleganza @ilyar @thekiba Any reaction?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants