From 77db0b8b7db3fe39e0b15c277b81dd4296d9cdfa Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Tue, 4 Dec 2018 12:28:40 +0000 Subject: [PATCH] rename CardStack handlers --- src/components/CardStack.jsx | 6 +++--- src/components/Dashboard.jsx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/CardStack.jsx b/src/components/CardStack.jsx index 84ae9aa..8408f54 100644 --- a/src/components/CardStack.jsx +++ b/src/components/CardStack.jsx @@ -27,8 +27,8 @@ class CardStack extends React.Component { getCategoryGroup={this.props.getCategoryGroup} getCategoryColor={this.props.getCategoryColor} getCategoryLabel={this.props.getCategoryLabel} - highlight={this.props.highlight} - select={this.props.select} + highlight={this.props.onHighlight} + select={this.props.onSelect} /> ); }); @@ -54,7 +54,7 @@ class CardStack extends React.Component {
this.props.toggle('TOGGLE_CARDSTACK')} + onClick={() => this.props.onToggle('TOGGLE_CARDSTACK')} >

diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx index 950fa7e..344cc8e 100644 --- a/src/components/Dashboard.jsx +++ b/src/components/Dashboard.jsx @@ -126,9 +126,9 @@ class Dashboard extends React.Component { actions={this.props.actions} /> this.getNarrativeLinks(event)} getCategoryColor={category => this.getCategoryColor(category)} />