stephane-monnot / react-vertical-timeline

Vertical timeline for React.js
https://stephane-monnot.github.io/react-vertical-timeline/
MIT License
1.06k stars 158 forks source link

Do not create empty space for event if `date` is null #165

Open vbeskrovnov opened 10 months ago

vbeskrovnov commented 10 months ago

Currently, if leave the optional date field as undefined, empty space will be rendered in the event timeline:

Screenshot 2023-08-29 at 20 54 13

This change add check before rendering it:

Screenshot 2023-08-29 at 20 53 44