rcdexta / react-event-timeline

A responsive event timeline in React.js
https://rcdexta.com/react-event-timeline
MIT License
536 stars 56 forks source link

Warning: Unknown prop `container` on <div> tag. Remove this prop from the element. #4

Closed technotronic12 closed 7 years ago

technotronic12 commented 7 years ago

When using the timeline event like this:

      <TimelineEvent
      title={title}
      createdAt={moment(event.dateTime).format('MMMM Do, h:mm:ss a')}
      container="card"
      icon={icon}
      iconColor={iconColor}
      contentStyle={{display: show}}
      key={`event#${index}`}
      className={styles.incidentTimeLineEvent}
      >

I get this warning:

Warning: Unknown prop container on < div > tag. Remove this prop from the element.

rcdexta commented 7 years ago

@technotronic12 Thanks for pointing this out. Fixed in the latest build.

Reference: https://rcdexta.github.io/react-event-timeline/?selectedKind=Timeline&selectedStory=Card%20Appearance&full=0&down=0&left=1&panelRight=0

technotronic12 commented 7 years ago

Thanks!