Update dependencies, use .js file extensions
This commit is contained in:
parent
4d3c5ca244
commit
65431b45bb
7 changed files with 28 additions and 21 deletions
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue