From 72f01a46097746b38979016ae1468c49838ba31a Mon Sep 17 00:00:00 2001 From: Lutz Helm <helm@ub.uni-leipzig.de> Date: Mon, 29 Mar 2021 17:46:41 +0200 Subject: [PATCH] Fix lint problems in AnnotationExportDialog --- src/AnnotationExportDialog.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/AnnotationExportDialog.js b/src/AnnotationExportDialog.js index 6f996dd..9f67ddd 100644 --- a/src/AnnotationExportDialog.js +++ b/src/AnnotationExportDialog.js @@ -11,7 +11,8 @@ import Typography from '@material-ui/core/Typography'; import PropTypes, { bool } from 'prop-types'; import { withStyles } from '@material-ui/core'; -const styles = theme => ({ +/** */ +const styles = (theme) => ({ listitem: { '&:focus': { backgroundColor: theme.palette.action.focus, @@ -20,7 +21,7 @@ const styles = theme => ({ backgroundColor: theme.palette.action.hover, }, }, -}) +}); /** */ class AnnotationExportDialog extends Component { @@ -122,6 +123,7 @@ AnnotationExportDialog.propTypes = { canvases: PropTypes.arrayOf( PropTypes.shape({ id: PropTypes.string, index: PropTypes.number }), ).isRequired, + classes: PropTypes.objectOf(PropTypes.string), config: PropTypes.shape({ annotation: PropTypes.shape({ adapter: PropTypes.func, @@ -131,4 +133,8 @@ AnnotationExportDialog.propTypes = { open: bool.isRequired, }; +AnnotationExportDialog.defaultProps = { + classes: {}, +}; + export default withStyles(styles)(AnnotationExportDialog); -- GitLab