Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lab][Timeline] Fix types for React 19 #44043

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

aarongarciah
Copy link
Member

@aarongarciah aarongarciah commented Oct 8, 2024

Extracted from #42824 to fix the following TS error in the Timeline component when using React 19 types:

image

@aarongarciah aarongarciah added typescript package: lab Specific to @mui/lab component: timeline This is the name of the generic UI component, not the React module! React 19 support PRs required to support React 19 labels Oct 8, 2024
@mui-bot
Copy link

mui-bot commented Oct 8, 2024

Netlify deploy preview

https://deploy-preview-44043--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad)
No bundle size changes

Generated by 🚫 dangerJS against 7b190cd

@aarongarciah aarongarciah changed the title [lab] Fix Timeline types for React 19 [lab][Timeline] Fix types for React 19 Oct 8, 2024
@aarongarciah aarongarciah marked this pull request as ready for review October 8, 2024 14:57
Comment on lines -24 to -25
const TimelineRoot = styled('ul' as const, {
name: 'MuiTimeline' as const,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed these since they look unnecessary.

@aarongarciah aarongarciah merged commit d6e5ade into mui:master Oct 8, 2024
22 checks passed
@aarongarciah aarongarciah deleted the timeline-react-19-types branch October 8, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: timeline This is the name of the generic UI component, not the React module! package: lab Specific to @mui/lab React 19 support PRs required to support React 19 typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants