WIP: simplify narratives selection

This commit is contained in:
Lachlan Kermode
2019-01-03 15:51:09 +00:00
parent a39af029a3
commit c75405f2ba
8 changed files with 69 additions and 67 deletions

View File

@@ -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 (