Page MenuHomePhabricator

[web] update RelationshipPromptButton to be more reusable
ClosedPublic

Authored by ginsu on Oct 10 2023, 10:53 AM.
Tags
None
Referenced Files
F2902580: D9446.diff
Sat, Oct 5, 6:10 PM
Unknown Object (File)
Fri, Oct 4, 12:22 AM
Unknown Object (File)
Sat, Sep 14, 5:01 PM
Unknown Object (File)
Sat, Sep 14, 5:01 PM
Unknown Object (File)
Sat, Sep 14, 5:00 PM
Unknown Object (File)
Sat, Sep 14, 4:59 PM
Unknown Object (File)
Sep 2 2024, 3:53 PM
Unknown Object (File)
Sep 2 2024, 3:15 AM
Subscribers

Details

Summary

I want to use RelationshipPromptButton in user profiles. Right now there are some styles that are making it difficult to do that. In this diff I moved/changed some of the styles around + snuck in a quick memoization improvement to this component

Depends on D9431

Test Plan

Confirmed that RelationshipPromptButton looked and behaved the same

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu edited the summary of this revision. (Show Details)
ginsu added inline comments.
web/chat/relationship-prompt/relationship-prompt-button.js
23 ↗(On Diff #31881)

Added memoization here since we are rendering an svg here

atul added inline comments.
web/chat/relationship-prompt/relationship-prompt-button.js
23 ↗(On Diff #31881)

Thanks for doing that

This revision is now accepted and ready to land.Oct 16 2023, 8:54 AM