forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
theme: Fix latent bug with colors not updating on rerender.
Compute theme-dependent styles in the render method. As foreshadowed in a previous commit that touched src/common/Screen.js, fix the remaining latent bugs where the placement of theme-dependent styles in a class initializer, instead of the `render` method, meant that these styles don't live-update when the theme changes, unless the component is unmounted and a new instance is created to replace it. The `key={theme}` hack accomplished this replacement, so this bug hasn't been visible. But that hack will disappear in an upcoming commit, so this change needs to be made before then. These bugs were introduced in 51dd1b3: LineSeparator.js a4e0f23: OptionButton.js and OptionRow.js f6ddc2d: OptionDivider.js
- Loading branch information
Showing
4 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters