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

[useMenuItem] Add explicit return type #36359

Merged
merged 4 commits into from
Mar 7, 2023

Conversation

rayrw
Copy link
Contributor

@rayrw rayrw commented Feb 27, 2023

This PR is the useMenuItem part of this issue #35933

@mui-bot
Copy link

mui-bot commented Feb 27, 2023

Netlify deploy preview

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

Bundle size report

Details of bundle changes

Generated by 🚫 dangerJS against 34ee04b

@zannager zannager added the component: menu This is the name of the generic UI component, not the React module! label Feb 28, 2023
hbjORbj
hbjORbj previously requested changes Mar 2, 2023
Copy link
Member

@hbjORbj hbjORbj left a comment

Choose a reason for hiding this comment

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

Please run yarn docs:api after the changes.

packages/mui-base/src/useMenuItem/useMenuItem.types.ts Outdated Show resolved Hide resolved
packages/mui-base/src/useMenuItem/useMenuItem.types.ts Outdated Show resolved Hide resolved
@hbjORbj hbjORbj added typescript package: base-ui Specific to @mui/base labels Mar 2, 2023
@rayrw
Copy link
Contributor Author

rayrw commented Mar 3, 2023

@hbjORbj Thanks for the reviews!
After I've updated the code following your suggestions, running yarn docs:api generates the same documentation.
Please have another look.

@rayrw rayrw requested review from hbjORbj and removed request for mnajdova March 3, 2023 00:48
@rayrw rayrw force-pushed the use-menu-item-return-value branch from bf3de6c to 737ed6e Compare March 3, 2023 02:16
@ZeeshanTamboli ZeeshanTamboli added the docs Improvements or additions to the documentation label Mar 6, 2023
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli left a comment

Choose a reason for hiding this comment

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

@rayrw It's a great first pull request on MUI 👌 Thank you for working on it!

@ZeeshanTamboli ZeeshanTamboli merged commit c8c7046 into mui:master Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: menu This is the name of the generic UI component, not the React module! docs Improvements or additions to the documentation package: base-ui Specific to @mui/base typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants