fix another react bug
This commit is contained in:
parent
980fca9844
commit
00c54b7d66
1 changed files with 3 additions and 3 deletions
|
@ -2,8 +2,8 @@ import React, { Component, PropTypes } from 'react'
|
||||||
import { objectWithoutProperties } from '../utils'
|
import { objectWithoutProperties } from '../utils'
|
||||||
|
|
||||||
const MapLink = props => {
|
const MapLink = props => {
|
||||||
const { show, linkText, href, linkClass } = props
|
const { show, text, href, linkClass } = props
|
||||||
const otherProps = objectWithoutProperties(props, ['show', 'linkText', 'href', 'linkClass'])
|
const otherProps = objectWithoutProperties(props, ['show', 'text', 'href', 'linkClass'])
|
||||||
if (!show) {
|
if (!show) {
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ const MapLink = props => {
|
||||||
return (
|
return (
|
||||||
<a { ...otherProps } href={href} className={linkClass}>
|
<a { ...otherProps } href={href} className={linkClass}>
|
||||||
<div className="exploreMapsIcon"></div>
|
<div className="exploreMapsIcon"></div>
|
||||||
{linkText}
|
{text}
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue