Introducing component rendering single thread member on the list in thread modal.
It contains menu with actions (added in the next diffs) and displays user role as a label. When the menu is open, the style is a bit different, so it keeps the menu state and receives onMenuChange prop, as the parent component also needs to know the menu status (to disable scrolling when it's open)
Details
Details
Component can be tested after introducing thread members modal.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
web/modals/threads/members/member.react.js | ||
---|---|---|
36 ↗ | (On Diff #10200) | why wrap this in useMemo? couldnt we just pass the icon name string to the component rather than passing the entire icon component? |
web/modals/threads/members/member.react.js | ||
---|---|---|
36 ↗ | (On Diff #10200) | The question is related more to Menu component design. |
Comment Actions
Make sure to re-request review if you're responding to a comment without any updates! Otherwise, the diff stays in your queue
This comment was removed by • benschac.
web/modals/threads/members/member.react.js | ||
---|---|---|
46 ↗ | (On Diff #10439) | Yes, next diff introduces the items. |