Update dependencies, use .js file extensions

This commit is contained in:
Gianluca Esposito 2016-02-21 23:45:50 +01:00
parent 4d3c5ca244
commit 65431b45bb
7 changed files with 28 additions and 21 deletions

View file

@ -9,8 +9,9 @@ import '../css/styles.css'
class Template extends React.Component {
render () {
const { location, children } = this.props
let header
if (this.props.location.pathname === link('/')) {
if (location.pathname === link('/')) {
header = (
<h1
style={{
@ -53,7 +54,7 @@ class Template extends React.Component {
}}
>
{header}
{this.props.children}
{children}
</Container>
)
}