Skip to content

Commit

Permalink
update theme componenet path (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes authored Sep 17, 2024
1 parent 9325222 commit 3a5ac79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/theme/DocVersionBanner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
import {ThemeClassNames} from '@docusaurus/theme-common';
import {
useDocsPreferredVersion,
} from '@docusaurus/theme-common/internal';
useDocsVersion,
} from '@docusaurus/plugin-content-docs/client';
function UnreleasedVersionLabel({siteTitle, versionMetadata}) {
return (
<Translate
Expand Down Expand Up @@ -111,7 +112,7 @@ function DocVersionBannerEnabled({className, versionMetadata}) {
);
}
export default function DocVersionBanner({className}) {
const versionMetadata = useDocsPreferredVersion();
const versionMetadata = useDocsVersion();
if (versionMetadata.banner) {
return (
<DocVersionBannerEnabled
Expand Down

0 comments on commit 3a5ac79

Please sign in to comment.