-
Notifications
You must be signed in to change notification settings - Fork 252
fix: updated bottomsheet for walletregistry app #2349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
packages/modal/src/ui/components/ConnectWallet/ConnectWalletQrCode/ConnectWalletQrCode.tsx
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
| selectedButton={bodyState.metamaskQrCode.wallet} | ||
| primaryColor={bodyState.metamaskQrCode.wallet.walletRegistryItem?.primaryColor} | ||
| logoImage={`https://images.web3auth.io/login-${bodyState.metamaskQrCode.wallet.name}.${bodyState.metamaskQrCode.wallet.imgExtension}`} | ||
| platform={deviceDetails.platform} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing disableBackButton prop in MetaMask QR code view
Medium Severity
The ConnectWalletHeader in the MetaMask QR code view is missing the disableBackButton prop. The PR adds disableBackButton={bodyState.installLinks?.show || bodyState.multiChainSelector?.show} to the main ConnectWallet component, but the ConnectWalletHeader rendered when bodyState.metamaskQrCode?.show is true doesn't receive this prop. When a user opens the "Get Wallet" install links bottom sheet from the MetaMask QR code view, the back button remains enabled instead of being disabled, which is inconsistent with the stated PR behavior.
Motivation and Context
Jira Link:
Description
In this PR, I have updated the ConnectWalletQRCode handling for wallet links. The component is no longer rendered when the walletRegistry app list is empty. Additionally, we now validate platform-specific keys—browser for desktop and ios/android for mobile—to ensure the correct platforms are available.
We also disabled the back button when the bottom sheet is opened.
How has this been tested?
Screenshots (if appropriate):
Screen.Recording.2026-01-27.at.5.53.42.PM.mov
Types of changes
Checklist:
Note
Refines wallet connection UX and bottom sheet behavior.
ConnectWalletQrCodenow shows the "Get wallet" CTA only when wallet registry has platform-appropriate links (desktop:browser/chrome/firefox/edge, mobile:ios/android); requires and usesplatformprop passed fromRootandConnectWalletConnectWalletHeaderAPI updated: addshideBackButton; back button respectsdisableBackButton(disabled state and click ignored);ConnectWalletcomputeshideBackButtonand forwardsdisableBackButtonfromRoot(disabled wheninstallLinksormultiChainSelectorsheets are open)BottomSheetbackdrop click now stops event propagation before closing to avoid accidental parent handlersWritten by Cursor Bugbot for commit 470d069. This will update automatically on new commits. Configure here.