refactor onselect

This commit is contained in:
Sol
2020-07-27 14:49:01 +01:00
committed by Lachlan Kermode
parent f525bbbf02
commit e04fb2ebfb
5 changed files with 7 additions and 12 deletions

View File

@@ -172,7 +172,7 @@ class Card extends React.Component {
className={`event-card ${isSelected ? 'selected' : ''}`}
id={`event-card-${idx}`}
ref={this.props.innerRef}
onClick={this.props.onClick}
onClick={this.props.onSelect}
>
{this.renderMain()}
{this.state.isOpen ? this.renderExtra() : null}