Skip to content
Snippets Groups Projects
Commit 3baca0bc authored by Ben Wheeler's avatar Ben Wheeler
Browse files

fixed mouse click issuue

parent a4af7adf
Branches
Tags
No related merge requests found
......@@ -9,6 +9,7 @@ import classNames from 'classnames';
import bluetoothIconURL from './bluetooth.svg';
import internetConnectionIconURL from './internet-connection.svg';
/* eslint-disable react/prefer-stateless-function */
class LibraryItemComponent extends React.PureComponent {
render () {
return this.props.featured ? (
......@@ -22,7 +23,7 @@ class LibraryItemComponent extends React.PureComponent {
this.props.extensionId ? styles.libraryItemExtension : null,
this.props.hidden ? styles.hidden : null
)}
onClick={this.handleClick}
onClick={this.props.onClick}
>
<div className={styles.featuredImageContainer}>
{this.props.disabled ? (
......@@ -131,6 +132,8 @@ class LibraryItemComponent extends React.PureComponent {
);
}
}
/* eslint-enable react/prefer-stateless-function */
LibraryItemComponent.propTypes = {
bluetoothRequired: PropTypes.bool,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment