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
F3391831: D3795.diff
Sat, Nov 30, 6:14 AM
Unknown Object (File)
Wed, Nov 27, 5:43 AM
Unknown Object (File)
Wed, Nov 27, 5:40 AM
Unknown Object (File)
Mon, Nov 25, 11:20 AM
Unknown Object (File)
Fri, Nov 22, 2:01 PM
Unknown Object (File)
Fri, Nov 22, 2:01 PM
Unknown Object (File)
Fri, Nov 22, 2:01 PM
Unknown Object (File)
Fri, Nov 22, 2:01 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/modals/threads/thread-settings-modal.react.js
471–472
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

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