Page MenuHomePhabricator

[web] update RelationshipPromptButton to be more reusable
ClosedPublic

Authored by ginsu on Oct 10 2023, 10:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 7:27 AM
Unknown Object (File)
Thu, Nov 14, 7:27 AM
Unknown Object (File)
Thu, Nov 14, 7:26 AM
Unknown Object (File)
Thu, Nov 14, 7:25 AM
Unknown Object (File)
Thu, Nov 14, 7:08 AM
Unknown Object (File)
Sun, Nov 10, 8:25 AM
Unknown Object (File)
Oct 15 2024, 6:01 AM
Unknown Object (File)
Oct 15 2024, 6:01 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
No Lint Coverage
Unit
No Test Coverage

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