Rename function to match event name

pull/10616/head
Alex P 2018-07-10 10:09:34 -07:00
parent 6cf775ae07
commit acfd17ea5c
1 changed files with 5 additions and 5 deletions

View File

@ -422,7 +422,7 @@ class LogsTable extends Component<Props, State> {
<div <div
className={`logs-viewer--dot ${value}-severity`} className={`logs-viewer--dot ${value}-severity`}
title={value} title={value}
onMouseOver={this.handleMouseEnter} onMouseOver={this.handleMouseOver}
data-index={rowIndex} data-index={rowIndex}
style={this.severityDotStyle(value)} style={this.severityDotStyle(value)}
/> />
@ -446,14 +446,14 @@ class LogsTable extends Component<Props, State> {
style={{...style, padding: '5px'}} style={{...style, padding: '5px'}}
key={key} key={key}
data-index={rowIndex} data-index={rowIndex}
onMouseOver={this.handleMouseEnter} onMouseOver={this.handleMouseOver}
> >
<div <div
data-tag-key={column} data-tag-key={column}
data-tag-value={value} data-tag-value={value}
onClick={this.handleTagClick} onClick={this.handleTagClick}
data-index={rowIndex} data-index={rowIndex}
onMouseOver={this.handleMouseEnter} onMouseOver={this.handleMouseOver}
className="logs-viewer--clickable" className="logs-viewer--clickable"
> >
{formattedValue} {formattedValue}
@ -469,7 +469,7 @@ class LogsTable extends Component<Props, State> {
})} })}
key={key} key={key}
style={style} style={style}
onMouseOver={this.handleMouseEnter} onMouseOver={this.handleMouseOver}
data-index={rowIndex} data-index={rowIndex}
> >
{formattedValue} {formattedValue}
@ -488,7 +488,7 @@ class LogsTable extends Component<Props, State> {
} }
} }
private handleMouseEnter = (e: MouseEvent<HTMLElement>): void => { private handleMouseOver = (e: MouseEvent<HTMLElement>): void => {
const target = e.target as HTMLElement const target = e.target as HTMLElement
this.setState({currentRow: +target.dataset.index}) this.setState({currentRow: +target.dataset.index})
} }