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 {
diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx
index cd6d22b..344cc8e 100644
--- a/src/components/Dashboard.jsx
+++ b/src/components/Dashboard.jsx
@@ -21,7 +21,7 @@ class Dashboard extends React.Component {
this.handleSelect = this.handleSelect.bind(this);
this.handleToggle = this.handleToggle.bind(this);
this.handleTagFilter = this.handleTagFilter.bind(this);
- this.handleTimeFilter = this.handleTimeFilter.bind(this);
+ this.updateTimerange = this.updateTimerange.bind(this);
this.eventsById = {};
}
@@ -45,7 +45,7 @@ class Dashboard extends React.Component {
handleSelect(selected) {
if (selected) {
- let eventsToSelect = selected.map(eventId => this.getEventById(eventId));
+ let eventsToSelect = selected.map(event => this.getEventById(event.id));
const parser = this.props.ui.tools.parser;
eventsToSelect = eventsToSelect.sort((a, b) => {
@@ -79,7 +79,7 @@ class Dashboard extends React.Component {
this.props.actions.updateTagFilters(tag);
}
- handleTimeFilter(timeRange) {
+ updateTimerange(timeRange) {
this.props.actions.updateTimeRange(timeRange);
}
@@ -126,17 +126,17 @@ class Dashboard extends React.Component {
actions={this.props.actions}
/>