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
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
Unknown Object (File)
Thu, Nov 14, 11:23 AM
Unknown Object (File)
Thu, Nov 14, 11:00 AM
Unknown Object (File)
Fri, Nov 8, 3:43 PM
Unknown Object (File)
Fri, Nov 8, 2:05 PM
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 ↗(On Diff #32247)

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.