fix projects!

This commit is contained in:
Lachlan Kermode
2020-05-31 14:19:20 +02:00
parent e49b0e2fb0
commit 08bbe9c85e
4 changed files with 18 additions and 51 deletions

View File

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