Skip to content

Commit

Permalink
update theme component path (#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuafernandes authored Sep 17, 2024
1 parent 77e46fb commit 3e18c5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/theme/DocVersionBanner/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ import {
} from "@docusaurus/plugin-content-docs/client";
import { ThemeClassNames } from "@docusaurus/theme-common";
import {
useDocsPreferredVersion
} from "@docusaurus/theme-common/internal";
useDocsPreferredVersion,
useDocsVersion,
} from '@docusaurus/plugin-content-docs/client';
function UnreleasedVersionLabel({ siteTitle, versionMetadata }) {
return (
<Translate
Expand Down Expand Up @@ -107,7 +108,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 3e18c5c

Please sign in to comment.