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)
Sun, Jun 30, 4:19 AM
Unknown Object (File)
Sat, Jun 29, 3:31 PM
Unknown Object (File)
Fri, Jun 28, 12:34 PM
Unknown Object (File)
Wed, Jun 26, 9:09 AM
Unknown Object (File)
Mon, Jun 24, 2:56 AM
Unknown Object (File)
Mon, Jun 24, 2:56 AM
Unknown Object (File)
Mon, Jun 24, 2:56 AM
Unknown Object (File)
Mon, Jun 24, 2:54 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