Skip to content

Commit

Permalink
fix: adjust download menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdesque authored Nov 7, 2024
1 parent dac6519 commit c89a971
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/miradorDownloadPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,15 @@ class MiradorDownload extends Component {
}

render() {
const { handleClose, openDownloadDialog, ...menuProps } = this.props;

return (
<React.Fragment>
<MenuItem {...menuProps} onClick={() => this.openDialogAndCloseMenu()}>
<ListItemIcon>
<DownloadIcon />
</ListItemIcon>
<ListItemText primaryTypographyProps={{ variant: 'body1' }}>
Download
</ListItemText>
</MenuItem>
</React.Fragment>
<MenuItem onClick={() => this.openDialogAndCloseMenu()}>
<ListItemIcon>
<VerticalAlignBottomIcon />
</ListItemIcon>
<ListItemText primaryTypographyProps={{ variant: 'body1' }}>
Download
</ListItemText>
</MenuItem>
);
}
}
Expand Down

0 comments on commit c89a971

Please sign in to comment.