mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
map and cards clickable
This commit is contained in:
@@ -163,8 +163,8 @@ class Card extends React.Component {
|
||||
/>
|
||||
) : null
|
||||
}
|
||||
|
||||
render () {
|
||||
|
||||
render () {
|
||||
const { isSelected, idx } = this.props
|
||||
|
||||
return (
|
||||
@@ -172,6 +172,7 @@ class Card extends React.Component {
|
||||
className={`event-card ${isSelected ? 'selected' : ''}`}
|
||||
id={`event-card-${idx}`}
|
||||
ref={this.props.innerRef}
|
||||
onClick={(e) => {this.props.onClick(idx);} }
|
||||
>
|
||||
{this.renderMain()}
|
||||
{this.state.isOpen ? this.renderExtra() : null}
|
||||
|
||||
Reference in New Issue
Block a user