mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 13:01:38 +00:00
fix: yes (#4891)
This commit is contained in:
18
website/src/theme/EditThisPage/index.js
vendored
Normal file
18
website/src/theme/EditThisPage/index.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import React from "react";
|
||||
import EditThisPage from "@theme-original/EditThisPage";
|
||||
import { useLocation } from "@docusaurus/router";
|
||||
|
||||
export default function EditThisPageWrapper(props) {
|
||||
const { pathname } = useLocation();
|
||||
if (
|
||||
pathname.startsWith("/terminal/reference") ||
|
||||
pathname.startsWith("/sdk/reference") ||
|
||||
pathname.startsWith("/bot/reference")
|
||||
)
|
||||
return null;
|
||||
return (
|
||||
<>
|
||||
<EditThisPage {...props} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user