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

[Paper] Add an optional property component to Paper.d.ts #27816

Closed

Conversation

alexile
Copy link
Contributor

@alexile alexile commented Aug 17, 2021

Closes #27703

Problem

Despite component property has been removed from Paper.d.ts (perhaps by accident), it's still in the documentation and works (moreover, it's needed, as one can see in the issue above). For consistency with similar components, it's just a React.ReactNode

Changes

  • Add the component?: React.ReactNode property back

@mui-pr-bot
Copy link

mui-pr-bot commented Aug 17, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against cfa828e

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 17, 2021

The changes in the tests are wrong. AFAIK the types of the Paper are correct, the issue is with the Drawer.

@oliviertassinari oliviertassinari added the PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI label Aug 17, 2021
@alexile alexile closed this Aug 17, 2021
@derekaug
Copy link

derekaug commented Feb 23, 2022

The changes in the tests are wrong. AFAIK the types of the Paper are correct, the issue is with the Drawer.

I'm trying to upgrade my company's design system library that uses MUI as a base. Typing on version 5.4.3 for Paper has no component prop and the upgrade guide doesn't mention it going away. Also, Paper appears to use this prop here: https://github.com/mui/material-ui/blob/v5.4.3/packages/mui-material/src/Paper/Paper.js#L77 - am I missing something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: needs revision The pull request can't be merged. More details is available on the code review or fails in the CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Paper] Typing error when trying to pass component to PaperProps of Drawer
4 participants