mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
Linting fixes
This commit is contained in:
@@ -13,7 +13,7 @@ class Card extends React.Component {
|
||||
constructor (props) {
|
||||
super(props)
|
||||
this.state = {
|
||||
isOpen: false,
|
||||
isOpen: false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ class Card extends React.Component {
|
||||
|
||||
render () {
|
||||
const { isSelected, idx } = this.props
|
||||
return (
|
||||
return (
|
||||
<li
|
||||
className={`event-card ${isSelected ? 'selected' : ''}`}
|
||||
id={`event-card-${idx}`}
|
||||
|
||||
@@ -72,16 +72,6 @@ class Dashboard extends React.Component {
|
||||
)
|
||||
}
|
||||
|
||||
filterEventDuplicates (events) {
|
||||
const seen = Set()
|
||||
const filteredEvents = events.filter(evt => {
|
||||
if (!(seen.has(evt.id))) {
|
||||
seen.add(evt.id)
|
||||
return evt
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
handleSelect (selected, axis) {
|
||||
const matchedEvents = []
|
||||
const TIMELINE_AXIS = 0
|
||||
@@ -97,10 +87,10 @@ class Dashboard extends React.Component {
|
||||
ptr >= 0 &&
|
||||
(events[idx].datetime).getTime() === (events[ptr].datetime).getTime()
|
||||
) {
|
||||
if (events[ptr].id !== selected.id) {
|
||||
matchedEvents.push(events[ptr])
|
||||
}
|
||||
ptr -= 1
|
||||
if (events[ptr].id !== selected.id) {
|
||||
matchedEvents.push(events[ptr])
|
||||
}
|
||||
ptr -= 1
|
||||
}
|
||||
// check events after
|
||||
ptr = idx + 1
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import React from 'react'
|
||||
import Checkbox from '../presentational/Checkbox'
|
||||
import copy from '../../common/data/copy.json'
|
||||
import { merge } from 'lodash'
|
||||
|
||||
/** recursively get an array of node keys to toggle */
|
||||
function childrenToToggle (filter, activeFilters, parentOn) {
|
||||
|
||||
Reference in New Issue
Block a user