Page MenuHomePhabricator

[web] Show sidebars modal from thread menu
ClosedPublic

Authored by jacek on Mar 4 2022, 5:38 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:26 PM
Unknown Object (File)
Fri, Nov 22, 2:25 PM
Unknown Object (File)
Wed, Nov 20, 4:57 PM
Unknown Object (File)
Nov 17 2024, 11:50 AM
Unknown Object (File)
Nov 17 2024, 11:47 AM

Details

Summary

Add action on Sidebars item in thread menu. It displays modal with sidebars.

Test Plan

Select thread with sidebars inside and select "Sidebars" from thread menu

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 4 2022, 10:29 AM
ashoat requested changes to this revision.Mar 7 2022, 10:06 PM
ashoat added inline comments.
web/chat/thread-menu.react.js
84 ↗(On Diff #10069)

Here I think it would be good practice to separate out this onClick into its own React.useCallback. It's the exact scenario I described in D3332 – a change to hasSidebars here will cause onClick to be regenerated, when otherwise it wouldn't have to be.

This revision now requires changes to proceed.Mar 7 2022, 10:06 PM

Move callback into React.useCallback

This revision is now accepted and ready to land.Mar 8 2022, 9:15 AM