Skip to content

Commit

Permalink
Merge branch 'main' into remove-hyperledger
Browse files Browse the repository at this point in the history
  • Loading branch information
joaniefromtheblock authored Sep 18, 2024
2 parents efac018 + 3e18c5c commit 725f87f
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 725f87f

Please sign in to comment.