object destructure + let/const
This commit is contained in:
parent
2b2f6e6dc4
commit
1774f8c530
1 changed files with 4 additions and 4 deletions
|
@ -2,10 +2,10 @@ import React, { Component, PropTypes } from 'react'
|
||||||
|
|
||||||
class Header extends Component {
|
class Header extends Component {
|
||||||
render = () => {
|
render = () => {
|
||||||
const signedIn = this.props.signedIn
|
const { signedIn, section } = this.props
|
||||||
const section = this.props.section
|
|
||||||
var activeClass = (title) => {
|
const activeClass = (title) => {
|
||||||
var forClass = "exploreMapsButton"
|
let forClass = "exploreMapsButton"
|
||||||
forClass += " " + title + "Maps"
|
forClass += " " + title + "Maps"
|
||||||
if (title == "my" && section == "mine" ||
|
if (title == "my" && section == "mine" ||
|
||||||
title == section) forClass += " active"
|
title == section) forClass += " active"
|
||||||
|
|
Loading…
Reference in a new issue