Page MenuHomePhabricator

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

Authored by atul on Apr 18 2022, 2:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 10:51 PM
Unknown Object (File)
Thu, Dec 19, 12:17 PM
Unknown Object (File)
Sat, Dec 7, 2:07 AM
Unknown Object (File)
Sat, Dec 7, 2:04 AM
Unknown Object (File)
Sat, Nov 30, 6:08 AM
Unknown Object (File)
Nov 27 2024, 6:44 AM
Unknown Object (File)
Nov 27 2024, 6:42 AM
Unknown Object (File)
Nov 27 2024, 6:42 AM

Details

Summary

Move onChangeColor 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 D3766

Test Plan
  1. Open ThreadSettingsModal
  2. Change the color a bunch
  3. Log values in onChangeColor 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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

specifically to turn it into a functional component.

That is helpful to see, can you add that to the diff descriptions of the rest of the elements in your stack?

That is helpful to see, can you add that to the diff descriptions of the rest of the elements in your stack?

Yeah, added it to the four diffs in the stack that were missing that clarification

tomek added inline comments.
web/modals/threads/thread-settings-modal.react.js
447–456 ↗(On Diff #11648)
This revision is now accepted and ready to land.Apr 21 2022, 3:08 AM