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 {
|
||||
render = () => {
|
||||
const signedIn = this.props.signedIn
|
||||
const section = this.props.section
|
||||
var activeClass = (title) => {
|
||||
var forClass = "exploreMapsButton"
|
||||
const { signedIn, section } = this.props
|
||||
|
||||
const activeClass = (title) => {
|
||||
let forClass = "exploreMapsButton"
|
||||
forClass += " " + title + "Maps"
|
||||
if (title == "my" && section == "mine" ||
|
||||
title == section) forClass += " active"
|
||||
|
|
Loading…
Reference in a new issue