Page MenuHomePhabricator

[web] introduce MessageReactionsListItem
ClosedPublic

Authored by ginsu on Oct 12 2023, 11:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 3, 7:35 AM
Unknown Object (File)
Mon, Jul 1, 7:07 AM
Unknown Object (File)
Sat, Jun 29, 10:49 PM
Unknown Object (File)
Sat, Jun 29, 5:03 PM
Unknown Object (File)
Sat, Jun 29, 4:07 AM
Unknown Object (File)
Sat, Jun 29, 4:07 AM
Unknown Object (File)
Sat, Jun 29, 4:07 AM
Unknown Object (File)
Sat, Jun 29, 4:04 AM
Subscribers

Details

Summary

This diff simply factors out the logic of rendering the message reactions list item into it's own component. We want to do this so that we can use usePushUserProfileModal inside this component

Part of https://linear.app/comm/issue/ENG-5244/make-user-profile-accessible-from-message-reactions-modal

Depends on D9484

Test Plan

Confirmed that the message reactions modal still looks and behaves the same

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul added inline comments.
web/modals/chat/message-reactions-list-item.react.js
18–24 ↗(On Diff #31991)

Doesn't hurt to memoize to avoid re-rendering UserAvatar, etc

This revision is now accepted and ready to land.Oct 16 2023, 12:16 PM

address @atul's comments + rebase before landing

This revision was automatically updated to reflect the committed changes.