Skip to content

Commit

Permalink
✨ Allow customizing text at connection dialog open
Browse files Browse the repository at this point in the history
  • Loading branch information
nwingt committed Aug 17, 2023
1 parent 97728bc commit 4bae80a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,20 @@ export class LikeCoinWalletConnector {

openConnectionMethodSelectionDialog = ({
language = this.options.language,
connectWalletTitle = this.options.connectWalletTitle,
connectWalletMobileWarning = this.options.connectWalletMobileWarning,
} = {}) => {
if (this.options.language !== language) {
this.options.language = language;
}
if (this.options.connectWalletTitle !== connectWalletTitle) {
this.options.connectWalletTitle = connectWalletTitle;
}
if (
this.options.connectWalletMobileWarning !== connectWalletMobileWarning
) {
this.options.connectWalletMobileWarning = connectWalletMobileWarning;
}

return new Promise<LikeCoinWalletConnectorConnectionResponse>(
async resolve => {
Expand Down

0 comments on commit 4bae80a

Please sign in to comment.