Page MenuHomePhabricator

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

Authored by atul on Apr 18 2022, 2:40 PM.
Tags
None
Referenced Files
F5097989: D3766.id11647.diff
Mon, Mar 31, 12:28 AM
F5097853: D3766.diff
Mon, Mar 31, 12:11 AM
F5096740: D3766.id11575.diff
Sun, Mar 30, 9:26 PM
F5094274: D3766.id.diff
Sun, Mar 30, 2:44 PM
Unknown Object (File)
Sat, Mar 29, 3:53 PM
Unknown Object (File)
Mon, Mar 17, 6:41 PM
Unknown Object (File)
Wed, Mar 12, 10:19 PM
Unknown Object (File)
Wed, Mar 12, 4:32 AM

Details

Summary

Move onChangeDescription 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.


Depends on D3765

Test Plan
  1. Open ThreadSettingsModal
  2. Change the thread description a bunch
  3. Log values in onChangeDescription to ensure that they continue to be as expected
  4. Hit save after changing the description and ensure that the thread description changed as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Apr 18 2022, 2:46 PM

Accepting, as this is a simple change

web/modals/threads/thread-settings-modal.react.js
443–454 ↗(On Diff #11647)
This revision is now accepted and ready to land.Apr 21 2022, 3:06 AM

rebase before addressing feedback

addressed feedback: remove invariant use optional chaining