Page MenuHomePhabricator

[web] Move `changeThreadSettingsAction` up from `ThreadSettingsModal` to `ConnectedThreadSettingsModal`
ClosedPublic

Authored by atul on Apr 20 2022, 2:57 PM.
Tags
None
Referenced Files
F3174802: D3795.diff
Thu, Nov 7, 6:04 PM
Unknown Object (File)
Mon, Oct 28, 3:02 AM
Unknown Object (File)
Tue, Oct 22, 11:15 AM
Unknown Object (File)
Tue, Oct 22, 11:15 AM
Unknown Object (File)
Tue, Oct 22, 11:15 AM
Unknown Object (File)
Tue, Oct 22, 2:05 AM
Unknown Object (File)
Mon, Oct 21, 11:37 PM
Unknown Object (File)
Sep 19 2024, 9:43 PM

Details

Summary

Move changeThreadSettingsAction out from inner class component to outer "Connected" functional component.

As part of the work to refactor ThreadSettingsModal... specifically to turn it into a functional component (any day now...)


Depends on D3794

Test Plan
  1. Open ThreadSettingsModal
  2. Mess with the settings
  3. Hit save and make sure things continue to look/work as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

web/modals/threads/thread-settings-modal.react.js
471–472 ↗(On Diff #11681)
atul requested review of this revision.Apr 20 2022, 3:03 PM
tomek added inline comments.
web/modals/threads/thread-settings-modal.react.js
475 ↗(On Diff #11681)

Only threadInfo.id is used in this callback (except in the invariant). Can we change the deps array to reflect that?

This revision is now accepted and ready to land.Apr 21 2022, 8:50 AM
web/modals/threads/thread-settings-modal.react.js
475 ↗(On Diff #11681)