Skip to content

Commit

Permalink
pass function as prop instead of wrapping in new function
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 14, 2018
1 parent cd35573 commit 19fad02
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export class InstructionSet extends React.Component {
grow={false}
>
<EuiButton
onClick={() => {this.props.onStatusCheck();}}
onClick={this.props.onStatusCheck}
isLoading={this.props.isCheckingStatus}
>
{this.props.statusCheckConfig.btnLabel ? this.props.statusCheckConfig.btnLabel : 'Check status'}
Expand Down

0 comments on commit 19fad02

Please sign in to comment.