From 5d36652207206e7946487ea5f0cfb86c98f69d36 Mon Sep 17 00:00:00 2001 From: "yongen.loong" Date: Fri, 26 Jul 2024 14:02:23 +0800 Subject: [PATCH] fix: build --- src/theme/logo.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/theme/logo.tsx b/src/theme/logo.tsx index faa5e68..cd8a1d5 100644 --- a/src/theme/logo.tsx +++ b/src/theme/logo.tsx @@ -2,6 +2,7 @@ import React from "react"; import ThemedImage from "@theme/ThemedImage"; import useBaseUrl from "@docusaurus/useBaseUrl"; import ChainGPT from '@site/src/theme/ChainGPT'; +import BrowserOnly from "@docusaurus/BrowserOnly"; /** * Reference: https://docusaurus.io/docs/markdown-features/assets#themed-images @@ -16,11 +17,13 @@ export default function Logo(): JSX.Element { dark: useBaseUrl("/img/Logo.aelf.white.svg"), }} /> - {!window.location.host.includes("aelf.com") && ( -
- -
- )} + + {() => ( +
+ {!window.location.host.includes("aelf.com") ? : null} +
+ )} +
); }