From be12f71fdef01e105e0c7004986a572b01756ee1 Mon Sep 17 00:00:00 2001 From: Mayank <9084735+mayank99@users.noreply.github.com> Date: Wed, 10 May 2023 16:43:45 -0400 Subject: [PATCH] more descriptive warning --- packages/itwinui-react/src/core/utils/hooks/useGlobals.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/itwinui-react/src/core/utils/hooks/useGlobals.ts b/packages/itwinui-react/src/core/utils/hooks/useGlobals.ts index f7c962deb98..7eaada22a48 100644 --- a/packages/itwinui-react/src/core/utils/hooks/useGlobals.ts +++ b/packages/itwinui-react/src/core/utils/hooks/useGlobals.ts @@ -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]);