Page MenuHomePhabricator

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

Authored by atul on Apr 18 2022, 3:04 PM.
Tags
None
Referenced Files
F5100442: D3768.id11750.diff
Mon, Mar 31, 1:00 PM
F5100436: D3768.id11751.diff
Mon, Mar 31, 12:58 PM
Unknown Object (File)
Sun, Mar 30, 9:52 AM
Unknown Object (File)
Sat, Mar 29, 7:11 AM
Unknown Object (File)
Sun, Mar 23, 5:32 PM
Unknown Object (File)
Sat, Mar 22, 12:48 AM
Unknown Object (File)
Wed, Mar 19, 4:55 AM
Unknown Object (File)
Thu, Mar 13, 2:28 AM

Details

Summary

Move onChangeThreadType 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 D3767

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

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Apr 18 2022, 3:09 PM
tomek added inline comments.
web/modals/threads/thread-settings-modal.react.js
449–459
This revision is now accepted and ready to land.Apr 21 2022, 3:09 AM

rebase before addressing feedback