fix(v2): fix broken link in warning about useThemeContext (#4183)

* Fix typo from 'dissapear' to 'disappear'

* Fix broken link
This commit is contained in:
Vamsi Krishna Reddy Satti 2021-02-07 05:28:16 +09:00 committed by GitHub
parent a6f771571b
commit 5871d1b41f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;