Page MenuHomePhabricator

[native][landing] Resize BottomSheet when WalletConnect opened
ClosedPublic

Authored by ashoat on Dec 23 2022, 1:35 PM.
Tags
None
Referenced Files
F2904853: D6017.diff
Sun, Oct 6, 2:39 AM
Unknown Object (File)
Fri, Sep 20, 7:21 PM
Unknown Object (File)
Fri, Sep 20, 10:28 AM
Unknown Object (File)
Mon, Sep 16, 9:32 AM
Unknown Object (File)
Sun, Sep 15, 12:11 AM
Unknown Object (File)
Sat, Sep 14, 1:06 AM
Unknown Object (File)
Wed, Sep 11, 12:58 AM
Unknown Object (File)
Mon, Sep 9, 12:30 PM
Subscribers

Details

Summary

WalletConnect needs more space. See video.

Test Plan

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/siwe
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Don't need the snapToPosition stuff actually

Three changes:

  1. Make it possible to increase the size of the BottomSheet. User may want to do this if eg. they don't have Coinbase wallet installed and they select it
  2. As a result, when the user closes WalletConnect modal, the WalletConnect snap point is not removed, so the BottomSheet doesn't resize. Added a React useEffect hook to keep the old behavior
  3. Factor bottom inset into bottom sheet heights for consistency between iOS and Android
atul added inline comments.
landing/siwe.react.js
136 ↗(On Diff #20084)

nit: think a newline after this would help visually separate the useCallback and useEffect with all the indentation

This revision is now accepted and ready to land.Dec 23 2022, 4:03 PM
This revision was landed with ongoing or failed builds.Dec 23 2022, 8:27 PM
This revision was automatically updated to reflect the committed changes.