Run Prettier

This commit is contained in:
Frank Li 2017-07-10 16:38:35 -07:00
parent a7b5148e06
commit fbae29b0ff
29 changed files with 1311 additions and 987 deletions

View file

@ -7,8 +7,8 @@
* of patent rights can be found in the PATENTS file in the same directory.
*/
const React = require('react');
const Marked = require('./Marked.js');
const React = require("react");
const Marked = require("./Marked.js");
class Doc extends React.Component {
render() {
@ -17,9 +17,9 @@ class Doc extends React.Component {
className="edit-page-link button"
href={
this.props.config.editUrl +
this.props.language +
'/' +
this.props.source
this.props.language +
"/" +
this.props.source
}
target="_blank"
>
@ -30,10 +30,14 @@ class Doc extends React.Component {
<div className="post">
<header className="postHeader">
{editLink}
<h1>{this.props.title}</h1>
<h1>
{this.props.title}
</h1>
</header>
<article>
<Marked>{this.props.content}</Marked>
<Marked>
{this.props.content}
</Marked>
</article>
</div>
);