diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 41b20eb51..6c6bc2ca9 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -1,5 +1,6 @@ import Link from "@docusaurus/Link"; -import { useColorMode } from "@docusaurus/theme-common"; +// import useBaseUrl from '@docusaurus/useBaseUrl'; +import ThemedImage from '@theme/ThemedImage'; import Translate from "@docusaurus/Translate"; import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Layout from "@theme/Layout"; @@ -100,8 +101,6 @@ function HomepageHeader() { const HomeBaseContent = () => { - const { colorMode } = useColorMode(); - const mainContent = React.useMemo(() => { return (
@@ -112,21 +111,16 @@ const HomeBaseContent = () => { ); }, []); - if (colorMode === "dark") { - return ( - <> - - {mainContent} - - ); - } else { return ( <> - + , + dark: , + }} + /> {mainContent} ); - } };