Allow removal of "Edit this Doc" button

This commit is contained in:
Frank Li 2017-07-20 15:21:20 -07:00
parent d5fb69d475
commit f622bf17d2
2 changed files with 4 additions and 4 deletions

View file

@ -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">