Skip to content

Commit

Permalink
more descriptive warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank99 committed May 10, 2023
1 parent ff3ccfa commit be12f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/itwinui-react/src/core/utils/hooks/useGlobals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const useThemeProviderWarning = () => {
const themeContext = React.useContext(ThemeContext);
React.useEffect(() => {
if (isDev && !didLogWarning.themeProvider && !themeContext) {
console.error('Component must be wrapped in ThemeProvider.');
console.error('All iTwinUI components must be wrapped in ThemeProvider.');
didLogWarning.themeProvider = true;
}
}, [themeContext]);
Expand Down

0 comments on commit be12f71

Please sign in to comment.