diff --git a/src/VerticalTimelineElement.js b/src/VerticalTimelineElement.js index 9a30fd7..d584918 100644 --- a/src/VerticalTimelineElement.js +++ b/src/VerticalTimelineElement.js @@ -1,6 +1,6 @@ -import React from 'react'; -import PropTypes from 'prop-types'; import classNames from 'classnames'; +import PropTypes from 'prop-types'; +import React from 'react'; import { InView } from 'react-intersection-observer'; const VerticalTimelineElement = ({ @@ -71,14 +71,16 @@ const VerticalTimelineElement = ({ className="vertical-timeline-element-content-arrow" /> {children} - - {date} - + {date && ( + + {date} + + )}