Page MenuHomePhabricator

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

Authored by ashoat on Dec 23 2022, 1:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 9:33 PM
Unknown Object (File)
Thu, Nov 7, 5:54 AM
Unknown Object (File)
Tue, Nov 5, 4:07 AM
Unknown Object (File)
Tue, Nov 5, 4:07 AM
Unknown Object (File)
Tue, Nov 5, 4:07 AM
Unknown Object (File)
Tue, Nov 5, 4:07 AM
Unknown Object (File)
Mon, Nov 4, 1:19 AM
Unknown Object (File)
Sat, Nov 2, 7:54 PM
Subscribers

Details

Summary

WalletConnect needs more space. See video.

Test Plan

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.