HomePhabricator
Diffusion Comm 3c4aa0915e83

[native] introduce relationship button

Tags
None
Referenced Files
F777606: Screenshot 2023-09-27 at 5.11.10 PM.png
Sep 27 2023, 11:02 PM
File Not Attached
F777605: Screenshot 2023-09-27 at 5.11.04 PM.png
Sep 27 2023, 11:02 PM
File Not Attached
F777600: Screenshot 2023-09-27 at 5.47.12 PM.png
Sep 27 2023, 11:02 PM
File Not Attached
F777599: Screenshot 2023-09-27 at 5.11.29 PM.png
Sep 27 2023, 11:02 PM
File Not Attached
F777598: Screenshot 2023-09-27 at 5.11.20 PM.png
Sep 27 2023, 11:02 PM
File Not Attached
Subscribers
None

Description

[native] introduce relationship button

Summary: In D9258, I got some feedback to factor out some of the logic in UserProfileRelationshipButton into its own separate RelationshipButton component. This diff introduces this compnent and should address that feedback

Test Plan:
Please see the screenshots below:

add:

Screenshot 2023-09-27 at 5.11.20 PM.png (1×948 px, 677 KB)

withdraw:

Screenshot 2023-09-27 at 5.11.29 PM.png (1×948 px, 686 KB)

accept & reject (there is a wrapping View for this in a parent component which is why it is in the row direction):

Screenshot 2023-09-27 at 5.47.12 PM.png (1×948 px, 448 KB)

block:

Screenshot 2023-09-27 at 5.11.04 PM.png (1×948 px, 678 KB)

unblock:

Screenshot 2023-09-27 at 5.11.10 PM.png (1×948 px, 678 KB)

Reviewers: atul, inka

Reviewed By: atul

Subscribers: ashoat, tomek

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

Details

Provenance
ginsuAuthored on Sep 27 2023, 11:01 PM
Reviewer
atul
Differential Revision
D9309: [native] introduce relationship button
Parents
rCOMMf5dd6833e19a: [lib] introduce useUserProfileThreadInfo hook
Branches
Unknown
Tags
Unknown