Skip to content

Commit

Permalink
fix(lint): fix unused import for create alert button
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Feb 19, 2019
1 parent da0e230 commit d355971
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/alerts/components/CreateAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ type Props = {
}

export default class CreateAlert extends Component<Props> {
_createAlert = () => this.props.createAlert()

render () {
const {
createAlert,
Expand All @@ -30,11 +28,14 @@ export default class CreateAlert extends Component<Props> {
bsSize='large'
style={{marginTop: '-8px'}}
disabled={createDisabled}
onClick={this._createAlert}
onClick={createAlert}
className='pull-right'>
{fetched
? 'New Alert'
: <span>Fetching alerts <Icon className='fa-spin' type='refresh' /></span>
: <span>
Fetching alerts{' '}
<Icon className='fa-spin' type='refresh' />
</span>
}
</Button>
)
Expand Down

0 comments on commit d355971

Please sign in to comment.