Update edit button and header language drop down

This commit is contained in:
Frank Li 2017-07-20 15:56:38 -07:00
parent f622bf17d2
commit b2be3331cf
2 changed files with 23 additions and 8 deletions

View file

@ -26,6 +26,17 @@ class Doc extends React.Component {
>
Edit this Doc
</a>;
if (this.props.language != "en") {
editLink =
this.props.config.recruitingLink &&
<a
className="edit-page-link button"
href={this.props.config.recruitingLink + "/" + this.props.language}
target="_blank"
>
Translate this Doc
</a>;
}
return (
<div className="post">
<header className="postHeader">