You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SmartUrlInput: Switch to new React Context API for theme colors.
(Commit message largely copied from that of a606bf3.)
Per zulip#1946, we're moving to the new React Context API
(https://reactjs.org/docs/context.html).
We’re also isolating the theme colors in their own context type, to
be accessed from there instead of the previously used
`context.styles` object. So, components that consume the theme
colors can and should use `static contextType = ThemeContext;` and,
e.g., this.context.backgroundColor, instead of
this.context.styles.backgroundColor, as was done before.
0 commit comments