Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf committed Aug 28, 2024
2 parents a2b17e9 + 8792a25 commit aa49e55
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
15 changes: 15 additions & 0 deletions src/theme/Root.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// https://docusaurus.io/docs/3.4.0/swizzling#wrapper-your-site-with-root

import BrowserOnly from "@docusaurus/BrowserOnly";
import React from "react";
import ChatComponent from "./ChatPAAL";

// Default implementation, that you can customize
export default function Root({ children }) {
return (
<>
{children}
<BrowserOnly>{() => <ChatComponent />}</BrowserOnly>
</>
);
}
27 changes: 7 additions & 20 deletions src/theme/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
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";
import ChatComponent from '@site/src/theme/ChatPAAL';

/**
* Reference: https://docusaurus.io/docs/markdown-features/assets#themed-images
*/
export default function Logo(): JSX.Element {
return (
<>
<ThemedImage
alt="aelf"
sources={{
light: useBaseUrl("/img/Logo.aelf.svg"),
dark: useBaseUrl("/img/Logo.aelf.white.svg"),
}}
/>
<BrowserOnly>
{() => (
<div>
{/*{!window.location.host.includes("aelf.com") ? <ChainGPT /> : null}*/}
{!window.location.host.includes("aelf.com") ? <ChatComponent /> : null}
</div>
)}
</BrowserOnly>
</>
<ThemedImage
alt="aelf"
sources={{
light: useBaseUrl("/img/Logo.aelf.svg"),
dark: useBaseUrl("/img/Logo.aelf.white.svg"),
}}
/>
);
}

0 comments on commit aa49e55

Please sign in to comment.