Page MenuHomePhabricator

[native] fix viewer user profile bototm sheet snap point
ClosedPublic

Authored by ginsu on Oct 6 2023, 5:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 22, 12:58 AM
Unknown Object (File)
Fri, Jun 21, 2:31 AM
Unknown Object (File)
Thu, Jun 20, 4:54 AM
Unknown Object (File)
Wed, Jun 19, 9:28 PM
Unknown Object (File)
Tue, Jun 18, 5:49 PM
Unknown Object (File)
Tue, Jun 18, 5:32 AM
Unknown Object (File)
Wed, Jun 12, 6:47 AM
Unknown Object (File)
Fri, Jun 7, 6:25 PM
Subscribers

Details

Summary

This fixes a small bug with our user profile bottom sheet snap point logic when a viewer was viewing their own user profile

Depends on D9394

Test Plan

Please see the screenshots below

Before:

Screenshot 2023-10-06 at 8.40.41 AM.png (1×1 px, 800 KB)

After:

Screenshot 2023-10-06 at 8.40.12 AM.png (1×1 px, 810 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka.
ginsu added inline comments.
native/user-profile/user-profile-relationship-button.react.js
45 ↗(On Diff #31742)

When the viewer is viewing their own profile they should not see a relationship button so we should enter this condition here

ginsu requested review of this revision.Oct 6 2023, 5:55 AM
This revision is now accepted and ready to land.Oct 9 2023, 1:46 PM
native/user-profile/user-profile-relationship-button.react.js
63

Nit: this doesn't need to be in the dep list anymore