diff --git a/src/CustomPage.tsx b/src/CustomPage.tsx index 36591f93af3..2f9ecbcb886 100644 --- a/src/CustomPage.tsx +++ b/src/CustomPage.tsx @@ -3,7 +3,6 @@ import { NETWORK_NAMES } from "@site/src/plugins/plugin-json-rpc"; import ParserOpenRPC from "@site/src/components/ParserOpenRPC"; import React from "react"; import DocSidebar from '@theme/DocSidebar'; -import styles from "../src/theme/Layout/styles.module.css" import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; function generateSidebarItems(docs) { @@ -83,12 +82,12 @@ const CustomPage = (props) => { return ( -
+
-
-
+
+
net.name === NETWORK_NAMES.metamask - ); - const metamaskMethods = - metamaskNetwork?.data?.methods?.map((item) => item.name) || []; - - const referencePageName = useMemo(() => { - const currentPath = location.pathname; - if (currentPath.includes(REF_PATH) && metamaskMethods.length > 0) { - const methodPath = currentPath.replace(REF_PATH, "").replace("/", ""); - const page = metamaskMethods.find( - (name) => - name.toLowerCase() === methodPath - ); - return page; - } - return false; - }, [location.pathname, metamaskMethods]); - - return ( - <> - { - referencePageName ? ( - -
- {children?.props?.children[0]?.type === "aside" && ( - <>{children.props.children[0]} - )} -
-
- -
-
-
-
- ) : ( - {children} - ) - } - - ) -} diff --git a/src/theme/Layout/styles.module.css b/src/theme/Layout/styles.module.css deleted file mode 100644 index bfd9ca409a2..00000000000 --- a/src/theme/Layout/styles.module.css +++ /dev/null @@ -1,21 +0,0 @@ -.pageWrapper { - display: flex; - width: 100%; - flex: 1 0 0%; -} - -.mainContainer { - width: 100%; - padding: 20px 30px; -} - -.contentWrapper { - max-width: 1440px; - margin: 0 auto; -} - -@media (width <= 996px) { - .pageWrapper { - display: block; - } -} \ No newline at end of file