updated html.jsx to es6

This commit is contained in:
Luandro 2015-10-07 09:03:10 -03:00
parent 0a4ebe5e10
commit e68ae6737c
2 changed files with 11 additions and 14 deletions

View file

@ -5,8 +5,11 @@ import find from 'lodash/collection/find';
export default class extends React.Component {
render() {
var body, fontSizeToMS, html, nextPost, readNext, ref, rhythm;
ref = this.props.typography, rhythm = ref.rhythm, fontSizeToMS = ref.fontSizeToMS;
let body, fontSizeToMS, html, nextPost, readNext, ref, rhythm;
ref = this.props.typography,
rhythm = ref.rhythm,
fontSizeToMS = ref.fontSizeToMS;
readNext = this.props.post.readNext;
if (readNext != null) {
nextPost = find(this.props.pages, function(page) {