diff --git a/core/gatsby-theme-docz/src/components/Header/index.js b/core/gatsby-theme-docz/src/components/Header/index.js index 829e99a3d..a9b3295aa 100644 --- a/core/gatsby-theme-docz/src/components/Header/index.js +++ b/core/gatsby-theme-docz/src/components/Header/index.js @@ -10,7 +10,7 @@ export const Header = props => { const { onOpen } = props const { repository, - themeConfig: { showDarkModeSwitch }, + themeConfig: { showDarkModeSwitch, showMarkdownEditButton }, } = useConfig() const { edit = true, ...doc } = useCurrentDoc() const [colorMode, setColorMode] = useColorMode() @@ -47,7 +47,7 @@ export const Header = props => { )} - {edit && doc.link && ( + {showMarkdownEditButton && edit && doc.link && (