mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
don't show non-categorised events on timeline
This commit is contained in:
@@ -9,13 +9,16 @@ export default ({
|
||||
onSelect,
|
||||
styleProps,
|
||||
extraRender
|
||||
}) => (
|
||||
<circle
|
||||
onClick={onSelect}
|
||||
className='event'
|
||||
cx={x}
|
||||
cy={y}
|
||||
style={styleProps}
|
||||
r={r}
|
||||
/>
|
||||
)
|
||||
}) => {
|
||||
if (!y) return null
|
||||
return (
|
||||
<circle
|
||||
onClick={onSelect}
|
||||
className='event'
|
||||
cx={x}
|
||||
cy={y}
|
||||
style={styleProps}
|
||||
r={r}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -91,6 +91,8 @@ const TimelineEvents = ({
|
||||
renderShape = renderDiamond
|
||||
} else if (event.shape === 'star') {
|
||||
renderShape = renderStar
|
||||
} else {
|
||||
renderShape = renderDot
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user