HomePhabricator
Diffusion Comm bd8a02592310

[landing] Fix detection of RainbowKit modal dismissal

Description

[landing] Fix detection of RainbowKit modal dismissal

Summary:
After the RainbowKit update, this was broken and was detecting modal dismissal when the WalletConnect modal was opened.

To address this, I added some state that tracks whether the WalletConnect modal is open, and disabled the dismiss behavior while it's open.

Depends on D8252

Test Plan:
Tested with the rest of the stack. I tested all three SIWE endpoints:

  1. Web
  2. Native (old flow)
  3. Native (new flow)

For each, I tested both Rainbow and WalletConnect (both of which need WalletConnect), and navigated around the WalletConnect modal to various places.

Reviewers: atul, ginsu

Reviewed By: atul

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D8253

Details

Provenance
ashoatAuthored on Jun 19 2023, 9:49 AM
Reviewer
atul
Differential Revision
D8253: [landing] Fix detection of RainbowKit modal dismissal
Parents
rCOMMf2a8a1de9912: [landing] Monitor WalletConnect modal height
Branches
Unknown
Tags
Unknown