clean handler semantics in Dashboard.jsx (further)

This commit is contained in:
Lachlan Kermode
2018-12-05 11:36:29 +00:00
parent eeb242ef87
commit 13befd298a
5 changed files with 11 additions and 17 deletions

View File

@@ -94,8 +94,8 @@ class Dashboard extends React.Component {
<div>
<Viewport
methods={{
select: this.handleSelect,
highlight: this.handleHighlight,
onSelect: this.handleSelect,
// onHighlight: this.handleHighlight,
getCategoryColor: category => this.getCategoryColor(category)
}}
/>
@@ -111,9 +111,11 @@ class Dashboard extends React.Component {
getCategoryColor={category => this.getCategoryColor(category)}
/>
<Timeline
onSelect={this.handleSelect}
onUpdateTimerange={this.updateTimerange}
getCategoryColor={category => this.getCategoryColor(category)}
methods={{
onSelect: this.handleSelect,
onUpdateTimerange: this.updateTimerange,
getCategoryColor: category => this.getCategoryColor(category)
}}
/>
<InfoPopUp
ui={this.props.ui}