refactor(v2): add missing theme-classic types (#4385)

This commit is contained in:
Armano 2021-03-12 12:19:19 +01:00 committed by GitHub
parent fa1d681abc
commit a39c62f644
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 90 additions and 46 deletions

View file

@ -133,7 +133,7 @@ export function DocsPreferredVersionContextProvider({
children,
}: {
children: ReactNode;
}) {
}): JSX.Element {
if (isDocsPluginEnabled) {
return (
<DocsPreferredVersionContextProviderUnsafe>
@ -149,7 +149,7 @@ function DocsPreferredVersionContextProviderUnsafe({
children,
}: {
children: ReactNode;
}) {
}): JSX.Element {
const contextValue = useContextValue();
return <Context.Provider value={contextValue}>{children}</Context.Provider>;
}