Page MenuHomePhabricator

[web] update AppearanceChangeModal buttons to use redux state
ClosedPublic

Authored by ginsu on Oct 20 2023, 12:44 AM.
Tags
None
Referenced Files
F3381836: D9554.id32247.diff
Thu, Nov 28, 6:41 AM
Unknown Object (File)
Sun, Nov 24, 12:52 PM
Unknown Object (File)
Sun, Nov 24, 12:45 PM
Unknown Object (File)
Sun, Nov 24, 10:56 AM
Unknown Object (File)
Tue, Nov 19, 7:53 PM
Unknown Object (File)
Thu, Nov 14, 11:25 AM
Unknown Object (File)
Thu, Nov 14, 11:25 AM
Unknown Object (File)
Thu, Nov 14, 11:25 AM
Subscribers

Details

Summary

Right now the updating the theme state is just localized to a useState in AppearanceChangeModal. Now that we have globalThemeInfo in our redux state we should update and use that instead.

Part of https://linear.app/comm/issue/ENG-4958/update-theme-based-on-the-active-theme-redux-state

Depends on D9553

Test Plan

Please see the demo video below

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka, rohan.
ginsu requested review of this revision.Oct 20 2023, 1:00 AM
atul added inline comments.
web/settings/appearance-change-modal.react.js
39–58

Out of scope of this diff, but while you have the file open... doesn't hurt to memoize this guy

This revision is now accepted and ready to land.Oct 20 2023, 10:50 AM

address @atul's comments + rebase before landing

This revision was landed with ongoing or failed builds.Oct 23 2023, 11:15 AM
This revision was automatically updated to reflect the committed changes.