stephane-monnot / react-vertical-timeline

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

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

Open vbeskrovnov opened 1 year ago

vbeskrovnov commented 1 year 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