mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 08:37:25 +02:00
Allow removal of "Edit this Doc" button
This commit is contained in:
parent
d5fb69d475
commit
f622bf17d2
2 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,8 @@ const Marked = require("./Marked.js");
|
|||
|
||||
class Doc extends React.Component {
|
||||
render() {
|
||||
let editLink = (
|
||||
let editLink =
|
||||
this.props.config.editUrl &&
|
||||
<a
|
||||
className="edit-page-link button"
|
||||
href={
|
||||
|
@ -24,8 +25,7 @@ class Doc extends React.Component {
|
|||
target="_blank"
|
||||
>
|
||||
Edit this Doc
|
||||
</a>
|
||||
);
|
||||
</a>;
|
||||
return (
|
||||
<div className="post">
|
||||
<header className="postHeader">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue