Page MenuHomePhabricator

[web] update RelationshipPromptButton to be more reusable
ClosedPublic

Authored by ginsu on Oct 10 2023, 10:53 AM.
Tags
None
Referenced Files
F3521276: D9446.id32065.diff
Mon, Dec 23, 2:47 AM
F3521275: D9446.id32052.diff
Mon, Dec 23, 2:47 AM
F3521274: D9446.id31881.diff
Mon, Dec 23, 2:47 AM
F3519618: D9446.id.diff
Sun, Dec 22, 10:43 PM
Unknown Object (File)
Nov 21 2024, 6:27 PM
Unknown Object (File)
Nov 18 2024, 6:23 PM
Unknown Object (File)
Nov 14 2024, 7:27 AM
Unknown Object (File)
Nov 14 2024, 7:27 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