Skip to content

Commit

Permalink
Forward MenuItem properties to the MenuItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Nov 6, 2023
1 parent 942cfab commit f6ebd2b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/miradorSharePlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ class MiradorShare extends Component {
}

render() {
const { openShareDialog, handleClose, ...menuProps } = this.props;
return (
<MenuItem onClick={() => this.openDialogAndClose()}>
<MenuItem {...menuProps} onClick={() => this.openDialogAndClose()}>
<ListItemIcon>
<ShareIcon />
</ListItemIcon>
Expand Down

0 comments on commit f6ebd2b

Please sign in to comment.