updated index and template to es6
This commit is contained in:
parent
befc53d387
commit
63473a7301
2 changed files with 16 additions and 18 deletions
|
|
@ -4,14 +4,14 @@ import { Container, Grid, Breakpoint, Span } from 'react-responsive-grid';
|
|||
import Typography from 'typography';
|
||||
import { link } from 'gatsby-helpers';
|
||||
|
||||
var typography = new Typography();
|
||||
var rhythm = typography.rhythm, fontSizeToMS = typography.fontSizeToMS;
|
||||
let typography = new Typography();
|
||||
let rhythm = typography.rhythm, fontSizeToMS = typography.fontSizeToMS;
|
||||
|
||||
import '../css/styles.css';
|
||||
|
||||
module.exports = React.createClass({
|
||||
render: function() {
|
||||
var header;
|
||||
export default class extends React.Component {
|
||||
render() {
|
||||
let header;
|
||||
if (this.props.state.path === link('/')) {
|
||||
header = (
|
||||
<h1
|
||||
|
|
@ -59,4 +59,4 @@ module.exports = React.createClass({
|
|||
</Container>
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue