Skip to content

Commit

Permalink
fix: remove useless isDestructive prop
Browse files Browse the repository at this point in the history
  • Loading branch information
francoislehoux-okta committed Aug 16, 2023
1 parent efe3af9 commit ea5e44c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions packages/odyssey-react-mui/src/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ export type MenuItemProps = {
* If `true`, the menu item will be visually marked as selected.
*/
isSelected?: boolean;
/**
* If `true`, the menu item will be visually marked as destructive.
*/
isDestructive?: boolean;
/**
* If `true`, the menu item will be visually marked as disabled.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export const WithDestructive: StoryObj<MenuButtonProps> = {
children: [
<MenuItem key="1">View details</MenuItem>,
<MenuItem key="2">Edit inventory</MenuItem>,
<MenuItem isDestructive key="3">
<MenuItem variant="destructive" key="3">
Jettison cargo
</MenuItem>,
],
Expand Down

0 comments on commit ea5e44c

Please sign in to comment.