Skip to content

Commit

Permalink
fix: Fix linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rcdexta committed May 1, 2018
1 parent 67e778a commit 496d018
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ToggleTip.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import InfoIcon from 'react-icons/lib/fa/info-circle'
import './styles'

class ToggleTip extends React.Component {
get label() {
get label () {
const {content} = this.props
if (content instanceof Array) {
return content.join('\n')
Expand All @@ -13,15 +13,15 @@ class ToggleTip extends React.Component {
}
}

get ttlpClasses() {
get ttlpClasses () {
const {animated, placement} = this.props
const classes = ['tltp--rounded']
if (!animated) classes.push('tltp--no-animate')
classes.push(`tltp--${placement}`)
return classes.join(' ')
}

render() {
render () {
return (
<span className={this.ttlpClasses} style={{display: 'flex'}} aria-label={this.label}>
<InfoIcon style={{cursor: 'pointer', verticalAlign: 'none'}} />
Expand Down

0 comments on commit 496d018

Please sign in to comment.