Skip to content

Commit

Permalink
feat(ActionsMenuItem): Force ellipsis false on MenuItem and ListItem
Browse files Browse the repository at this point in the history
  • Loading branch information
JF-Cozy committed Apr 27, 2023
1 parent 607315f commit 8a1725e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions react/ActionsMenu/ActionsMenuItem.jsx
Expand Up @@ -5,11 +5,9 @@ import MenuItem from 'cozy-ui/transpiled/react/MenuItem'
import ListItem from 'cozy-ui/transpiled/react/MuiCozyTheme/ListItem'

const ActionsMenuItem = forwardRef(({ isListItem, ...props }, ref) => {
if (isListItem) {
return <ListItem {...props} ref={ref} button ellipsis={false} />
}
const Component = isListItem ? ListItem : MenuItem

return <MenuItem {...props} ref={ref} button />
return <Component {...props} ref={ref} button ellipsis={false} />
})

ActionsMenuItem.propTypes = {
Expand Down

0 comments on commit 8a1725e

Please sign in to comment.