import React from 'react'
import { Link } from 'react-router'
import { ElloMark, ElloRainbowMark, ElloDonutMark } from '../iconography/ElloIcons'

class NavbarMark extends React.Component {

  renderMark() {
    switch (true) {
    case 'rainbow':
      return <ElloRainbowMark />
    case 'donut':
      return <ElloDonutMark />
    case 'none':
      return null
    case 'normal':
    default:
      return <ElloMark />
    }
  }

  render() {
    return (
      <Link className="NavbarMark" to="/">
        { this.renderMark() }
      </Link>
    )
  }
}

export default NavbarMark


import React from 'react'
import { Link } from 'react-router'
import { ElloMark, ElloRainbowMark, ElloDonutMark } from '../iconography/ElloIcons'

class NavbarMark extends React.Component {

  renderMark() {
    switch (ENV.LOGO_MARK) {
    case 'rainbow':
      return <ElloRainbowMark />
    case 'donut':
      return <ElloDonutMark />
    case 'none':
      return null
    case 'normal':
    default:
      return <ElloMark />
    }
  }

  render() {
    return (
      <Link className="NavbarMark" to="/">
        { this.renderMark() }
      </Link>
    )
  }
}

export default NavbarMark


Switch off the ENV var again.
Switch off the ENV var again.