namespace-ee / react-calendar-timeline

A modern and responsive react timeline component.
MIT License
1.91k stars 613 forks source link

Row renderer prop is throwing error when used in timeline component with typescript. #870

Open saivamsimorisetti opened 1 year ago

saivamsimorisetti commented 1 year ago

*Describe the bug I have been using this file in a project setup with Typescript, so when i add the rowRenderer as a prop to the Timeline component i am facing an issue like Property 'rowRenderer' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<ReactCalendarTimeline<TimelineItemBase, TimelineGroupBase>> & Readonly<...> & Readonly<...>'. Is there any solution to fix this issue?

To Reproduce Add the prop rowRenderer to the timeline component. Note: The file in which the timeline component will be used must be of .tsx Please provide one or both of the following:

Code (If you have a branch somewhere that shows your issue) or link to codesandbox example. Here's a base template for this library:

OR

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Library Version Please provide version of library in which this bug is occurring.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.