Skip to content

Commit 22f6268

Browse files
committed
fix: use anchor instead of Link to prevent build error
1 parent 62933cb commit 22f6268

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shared/ui/translation-banner/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from "react";
2-
import Link from "@docusaurus/Link";
32
import { useLocation } from "@docusaurus/router";
43
import { translate } from "@docusaurus/Translate";
54

@@ -11,9 +10,9 @@ export const Banner: React.FC = () => {
1110
return (
1211
<div>
1312
{translate({ id: "shared.translationBanner.base" })}
14-
<Link autoAddBaseUrl={false} to={canonicalPath}>
13+
<a href={canonicalPath}>
1514
{translate({ id: "shared.translationBanner.link" })}
16-
</Link>
15+
</a>
1716
.
1817
</div>
1918
);

0 commit comments

Comments
 (0)