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
Unknown Object (File)
Fri, Sep 13, 9:27 AM
Unknown Object (File)
Sun, Sep 1, 4:41 PM
Unknown Object (File)
Tue, Aug 27, 3:13 AM
Unknown Object (File)
Mon, Aug 26, 5:22 PM
Unknown Object (File)
Mon, Aug 26, 12:17 PM
Unknown Object (File)
Mon, Aug 26, 12:17 PM
Unknown Object (File)
Mon, Aug 26, 12:17 PM
Unknown Object (File)
Sun, Aug 25, 7:58 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)