mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-28 04:12:52 +00:00
fix(v2): fix broken link in warning about useThemeContext (#4183)
* Fix typo from 'dissapear' to 'disappear' * Fix broken link
This commit is contained in:
parent
a6f771571b
commit
5871d1b41f
|
|
@ -14,7 +14,7 @@ function useThemeContext(): ThemeContextProps {
|
|||
const context = useContext<ThemeContextProps | undefined>(ThemeContext);
|
||||
if (context == null) {
|
||||
throw new Error(
|
||||
'`useThemeContext` is used outside of `Layout` Component. See https://v2.docusaurus.io/docs/theme-classic#usethemecontext.',
|
||||
'`useThemeContext` is used outside of `Layout` Component. See https://v2.docusaurus.io/docs/api/themes/configuration#usethemecontext.',
|
||||
);
|
||||
}
|
||||
return context;
|
||||
|
|
|
|||
Loading…
Reference in New Issue