From 238e220d9fb90acb166ee2c3e9f01991928f69a5 Mon Sep 17 00:00:00 2001 From: Lachlan Kermode Date: Fri, 18 Jan 2019 16:46:02 +0000 Subject: [PATCH] fix categories labels y position --- src/components/Timeline.jsx | 9 +++--- src/components/TimelineCategories.jsx | 6 +--- .../presentational/Timeline/Labels.js | 30 +++++++++---------- 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/src/components/Timeline.jsx b/src/components/Timeline.jsx index a7ebdba..840f05f 100644 --- a/src/components/Timeline.jsx +++ b/src/components/Timeline.jsx @@ -275,6 +275,7 @@ class Timeline extends React.Component { /> { this.onDragStart() }} onDrag={() => { this.onDrag() }} onDragEnd={() => { this.onDragEnd() }} @@ -290,10 +291,10 @@ class Timeline extends React.Component { dims={dims} onApplyZoom={this.onApplyZoom} /> - + {/* */} + {category.category} diff --git a/src/components/presentational/Timeline/Labels.js b/src/components/presentational/Timeline/Labels.js index 9a75743..60e260e 100644 --- a/src/components/presentational/Timeline/Labels.js +++ b/src/components/presentational/Timeline/Labels.js @@ -22,21 +22,21 @@ const TimelineLabels = ({ dims, timelabels }) => { y2="20" > - {/* */} - {/* {formatterWithYear(timelabels[0])} */} - {/* */} - {/* */} - {/* {formatterWithYear(timelabels[1])} */} - {/* */} + + {formatterWithYear(timelabels[0])} + + + {formatterWithYear(timelabels[1])} + ) }