Skip to content
Snippets Groups Projects
Commit 72f01a46 authored by Lutz Helm's avatar Lutz Helm
Browse files

Fix lint problems in AnnotationExportDialog

parent a2fa01ca
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,8 @@ import Typography from '@material-ui/core/Typography'; ...@@ -11,7 +11,8 @@ import Typography from '@material-ui/core/Typography';
import PropTypes, { bool } from 'prop-types'; import PropTypes, { bool } from 'prop-types';
import { withStyles } from '@material-ui/core'; import { withStyles } from '@material-ui/core';
const styles = theme => ({ /** */
const styles = (theme) => ({
listitem: { listitem: {
'&:focus': { '&:focus': {
backgroundColor: theme.palette.action.focus, backgroundColor: theme.palette.action.focus,
...@@ -20,7 +21,7 @@ const styles = theme => ({ ...@@ -20,7 +21,7 @@ const styles = theme => ({
backgroundColor: theme.palette.action.hover, backgroundColor: theme.palette.action.hover,
}, },
}, },
}) });
/** */ /** */
class AnnotationExportDialog extends Component { class AnnotationExportDialog extends Component {
...@@ -122,6 +123,7 @@ AnnotationExportDialog.propTypes = { ...@@ -122,6 +123,7 @@ AnnotationExportDialog.propTypes = {
canvases: PropTypes.arrayOf( canvases: PropTypes.arrayOf(
PropTypes.shape({ id: PropTypes.string, index: PropTypes.number }), PropTypes.shape({ id: PropTypes.string, index: PropTypes.number }),
).isRequired, ).isRequired,
classes: PropTypes.objectOf(PropTypes.string),
config: PropTypes.shape({ config: PropTypes.shape({
annotation: PropTypes.shape({ annotation: PropTypes.shape({
adapter: PropTypes.func, adapter: PropTypes.func,
...@@ -131,4 +133,8 @@ AnnotationExportDialog.propTypes = { ...@@ -131,4 +133,8 @@ AnnotationExportDialog.propTypes = {
open: bool.isRequired, open: bool.isRequired,
}; };
AnnotationExportDialog.defaultProps = {
classes: {},
};
export default withStyles(styles)(AnnotationExportDialog); export default withStyles(styles)(AnnotationExportDialog);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment