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
F2835881: D9395.diff
Sat, Sep 28, 3:05 PM
Unknown Object (File)
Fri, Sep 13, 1:53 PM
Unknown Object (File)
Fri, Sep 13, 1:53 PM
Unknown Object (File)
Fri, Sep 13, 1:53 PM
Unknown Object (File)
Fri, Sep 13, 1:50 PM
Unknown Object (File)
Sat, Aug 31, 10:48 PM
Unknown Object (File)
Aug 24 2024, 3:39 PM
Unknown Object (File)
Aug 17 2024, 12:15 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
No Lint Coverage
Unit
No Test Coverage

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 ↗(On Diff #31913)

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