mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
fix projects!
This commit is contained in:
@@ -65,7 +65,6 @@ class Dashboard extends React.Component {
|
||||
)
|
||||
// check events before
|
||||
let ptr = idx - 1
|
||||
console.log(events)
|
||||
while (events[idx].datetime === events[ptr].datetime) {
|
||||
matchedEvents.push(events[ptr])
|
||||
ptr -= 1
|
||||
|
||||
@@ -99,6 +99,8 @@ const TimelineEvents = ({
|
||||
if (project) {
|
||||
const { offset } = projects[project]
|
||||
eventY = dims.marginTop + offset + sizes.eventDotR
|
||||
} else {
|
||||
eventY = 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -112,7 +114,7 @@ const TimelineEvents = ({
|
||||
return renderShape(event, styles, {
|
||||
x: getDatetimeX(event.datetime),
|
||||
y: eventY,
|
||||
onSelect: () => onSelect(event),
|
||||
onSelect: () => { console.log(event); onSelect(event) },
|
||||
dims,
|
||||
highlights: features.HIGHLIGHT_GROUPS ? getHighlights(event.tags[features.HIGHLIGHT_GROUPS.tagIndexIndicatingGroup]) : [],
|
||||
features
|
||||
|
||||
@@ -18,7 +18,7 @@ export default ({
|
||||
onClick={onClick}
|
||||
className='project'
|
||||
x={getX(start)}
|
||||
y={dims.marginTop + 100}
|
||||
y={dims.marginTop + offset}
|
||||
width={length}
|
||||
style={{ fill: colour, fillOpacity: 0.2 }}
|
||||
height={2 * sizes.eventDotR}
|
||||
|
||||
Reference in New Issue
Block a user