fix lint errors

This commit is contained in:
Franc Camps-Febrer
2019-02-01 12:23:11 -05:00
parent 6906adc258
commit 4af0c9c2ef
8 changed files with 67 additions and 62 deletions

View File

@@ -90,7 +90,7 @@ class Card extends React.Component {
renderTimestamp () {
let timelabel = this.makeTimelabel(this.props.event.timestamp)
let precision = this.props.event.time_display;
let precision = this.props.event.time_display
if (precision === '_date_only') {
precision = ''
timelabel = timelabel.substring(0, 11)
@@ -160,9 +160,12 @@ class Card extends React.Component {
}
render () {
const { isSelected } = this.props
const { isSelected, idx } = this.props
return (
<li className={`event-card ${isSelected ? 'selected' : ''}`}>
<li
className={`event-card ${isSelected ? 'selected' : ''}`}
id={`event-card-${idx}`}
>
{this.renderMain()}
{this.state.isOpen ? this.renderExtra() : null}
{isSelected ? this.renderCaret() : null}