mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 13:28:36 +03:00
WIP: simplify narratives selection
This commit is contained in:
@@ -33,14 +33,15 @@ class MapEvents extends React.Component {
|
||||
})
|
||||
|
||||
if (this.props.narrative) {
|
||||
const { byId } = this.props.narrative
|
||||
const eventsInNarrative = events.filter(e => byId.hasOwnProperty(e.id))
|
||||
if (eventsInNarrative.length <= 0) {
|
||||
styleProps = {
|
||||
...styleProps,
|
||||
fillOpacity: 0.1
|
||||
}
|
||||
}
|
||||
// TODO: logic to display narratives in Map
|
||||
// const { byId } = this.props.narrative
|
||||
// const eventsInNarrative = events.filter(e => byId.hasOwnProperty(e.id))
|
||||
// if (eventsInNarrative.length <= 0) {
|
||||
// styleProps = {
|
||||
// ...styleProps,
|
||||
// fillOpacity: 0.1
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user