diff --git a/src/skins/vector/views/atoms/ImageView.js b/src/skins/vector/views/atoms/ImageView.js index 6ff88e28e..a842f7c85 100644 --- a/src/skins/vector/views/atoms/ImageView.js +++ b/src/skins/vector/views/atoms/ImageView.js @@ -26,6 +26,10 @@ var filesize = require('filesize'); module.exports = React.createClass({ displayName: 'ImageView', + propTypes: { + onFinished: React.PropTypes.func.isRequired + }, + // XXX: keyboard shortcuts for managing dialogs should be done by the modal dialog base class somehow, surely... componentDidMount: function() { document.addEventListener("keydown", this.onKeyDown); diff --git a/src/skins/vector/views/organisms/ViewSource.js b/src/skins/vector/views/organisms/ViewSource.js index 5916967d0..371223d43 100644 --- a/src/skins/vector/views/organisms/ViewSource.js +++ b/src/skins/vector/views/organisms/ViewSource.js @@ -21,6 +21,10 @@ var React = require('react'); module.exports = React.createClass({ displayName: 'ViewSource', + propTypes: { + onFinished: React.PropTypes.func.isRequired + }, + componentDidMount: function() { document.addEventListener("keydown", this.onKeyDown); },