We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317dcf3 commit 9afcbf6Copy full SHA for 9afcbf6
src/content/blog/2024/04/25/react-19.md
@@ -280,14 +280,14 @@ import LightThemeContext from './LightThemeContext'
280
import DarkThemeContext from './ThemeContext'
281
282
function ThemedPage({theme, children}) {
283
- let theme;
+ let currentTheme;
284
if (theme === 'dark') {
285
- theme = use(DarkThemeContext);
+ currentTheme = use(DarkThemeContext);
286
} else {
287
- theme = use(LightThemeContext);
+ currentTheme = use(LightThemeContext);
288
}
289
return (
290
- <Page theme={theme}>
+ <Page theme={currentTheme}>
291
{children}
292
</Page>
293
);
0 commit comments