Skip to content

Commit

Permalink
Update MenuItem.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Janpot committed Oct 10, 2024
1 parent 5df7ca1 commit 2961cb7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/mui-joy/src/MenuItem/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ InnerMenuItem.propTypes /* remove-proptypes */ = {
* The color of the component. It supports those theme colors that make sense for this component.
* @default 'neutral'
*/
color: PropTypes.oneOf(['danger', 'neutral', 'primary', 'success', 'warning']),
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['danger', 'neutral', 'primary', 'success', 'warning']),
PropTypes.string,
]),
component: PropTypes.elementType,
/**
* If `true`, the component is disabled.
Expand Down Expand Up @@ -158,7 +161,10 @@ InnerMenuItem.propTypes /* remove-proptypes */ = {
* The [global variant](https://mui.com/joy-ui/main-features/global-variants/) to use.
* @default 'plain'
*/
variant: PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']),
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([
PropTypes.oneOf(['outlined', 'plain', 'soft', 'solid']),
PropTypes.string,
]),
} as any;

const MenuItem = React.memo(InnerMenuItem);
Expand Down

0 comments on commit 2961cb7

Please sign in to comment.