diff --git a/src/components/Layout/HeaderNav.tsx b/src/components/Layout/HeaderNav.tsx index 9c369920e..dec085b65 100644 --- a/src/components/Layout/HeaderNav.tsx +++ b/src/components/Layout/HeaderNav.tsx @@ -96,10 +96,7 @@ export default function HeaderNavStack(props: { buildType?: BuildType }) { )} {["zh", "en"].includes(language) && ( - + )} - } - to={generateDownloadURL(language)} - alt="download" - startIcon={ - - } - /> + {language === "zh" && ( + } + to={generateDownloadURL(language)} + alt="download" + startIcon={ + + } + /> + )} ); } @@ -323,21 +322,23 @@ export function HeaderNavStackMobile(props: { buildType?: BuildType }) { )} - - - gtmTrack(GTMEvent.ClickHeadNav, { - item_name: t("navbar.download"), - }) - } - > - - - - - + {language === "zh" && ( + + + gtmTrack(GTMEvent.ClickHeadNav, { + item_name: t("navbar.download"), + }) + } + > + + + + + + )} {["zh", "en"].includes(language) && ( diff --git a/src/components/Layout/MDXContent.tsx b/src/components/Layout/MDXContent.tsx index 692ce12c6..b774af81e 100644 --- a/src/components/Layout/MDXContent.tsx +++ b/src/components/Layout/MDXContent.tsx @@ -7,7 +7,7 @@ import { MDXRenderer } from "gatsby-plugin-mdx"; import Container from "@mui/material/Container"; import Box from "@mui/material/Box"; -import * as MDXConponents from "components/MDXComponents"; +import * as MDXComponents from "components/MDXComponents"; import { CustomNotice, MachineTranslationNotice, @@ -76,7 +76,7 @@ export default function MDXContent(props: { )}