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)
Wed, Sep 4, 7:59 AM
Unknown Object (File)
Sun, Sep 1, 12:38 AM
Unknown Object (File)
Sun, Aug 25, 2:26 AM
Unknown Object (File)
Sun, Aug 25, 2:26 AM
Unknown Object (File)
Sun, Aug 25, 2:26 AM
Unknown Object (File)
Sun, Aug 25, 2:26 AM
Unknown Object (File)
Sun, Aug 25, 2:26 AM
Unknown Object (File)
Aug 13 2024, 10:50 PM

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