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

@@ -72,9 +72,8 @@ class CardStack extends React.Component {
getCategoryLabel={this.props.getCategoryLabel}
onViewSource={this.props.onViewSource}
onHighlight={this.props.onHighlight}
onSelect={this.props.onSelect}
onSelect={() => this.props.onSelect(idx)}
features={this.props.features}
onClick={() => this.props.onSelectNarrativeStep(idx)}
/>)
})
}