diff --git a/browser/main/Detail/InfoButton.js b/browser/main/Detail/InfoButton.js index 24498880..ce9f35de 100644 --- a/browser/main/Detail/InfoButton.js +++ b/browser/main/Detail/InfoButton.js @@ -6,13 +6,14 @@ const InfoButton = ({ onClick }) => ( ) InfoButton.propTypes = { + onClick: PropTypes.func.isRequired } export default CSSModules(InfoButton, styles) diff --git a/browser/main/Detail/InfoPanel.js b/browser/main/Detail/InfoPanel.js index 193dc80f..5a1437f7 100644 --- a/browser/main/Detail/InfoPanel.js +++ b/browser/main/Detail/InfoPanel.js @@ -54,7 +54,9 @@ const InfoPanel = ({ InfoPanel.propTypes = { storageName: PropTypes.string.isRequired, folderName: PropTypes.string.isRequired, - noteKey: PropTypes.string.isRequired + noteKey: PropTypes.string.isRequired, + updatedAt: PropTypes.string.isRequired, + createdAt: PropTypes.string.isRequired } export default CSSModules(InfoPanel, styles) diff --git a/browser/main/Detail/MarkdownNoteDetail.js b/browser/main/Detail/MarkdownNoteDetail.js index aeb80dd8..e5d35a28 100644 --- a/browser/main/Detail/MarkdownNoteDetail.js +++ b/browser/main/Detail/MarkdownNoteDetail.js @@ -234,7 +234,7 @@ class MarkdownNoteDetail extends React.Component { handleInfoButtonClick (e) { const infoPanel = document.querySelector('.infoPanel') - infoPanel.style.display = display === 'none' ? 'inline' : 'none' + if (infoPanel.style) infoPanel.style.display = infoPanel.style.display === 'none' ? 'inline' : 'none' } render () { @@ -309,7 +309,7 @@ class MarkdownNoteDetail extends React.Component { this.handleInfoButtonClick(e)} />