diff --git a/browser/main/Detail/InfoPanel.js b/browser/main/Detail/InfoPanel.js index 0cf779944..f228fb018 100644 --- a/browser/main/Detail/InfoPanel.js +++ b/browser/main/Detail/InfoPanel.js @@ -3,7 +3,7 @@ import CSSModules from 'browser/lib/CSSModules' import styles from './InfoPanel.styl' const InfoPanel = ({ - storageName, folderName, noteLink, updatedAt, createdAt, exportAsMd, exportAsTxt + storageName, folderName, noteLink, updatedAt, createdAt, exportAsMd, exportAsTxt, wordCount, letterCount, type }) => (
@@ -46,6 +46,27 @@ const InfoPanel = ({ { e.target.select() }} />
+ {type === 'SNIPPET_NOTE' + ? '' + :
+
+
+ Words +
+
+ {wordCount} +
+
+
+
+ Letters +
+
+ {letterCount} +
+
+
+ }
diff --git a/browser/main/Detail/SnippetNoteDetail.js b/browser/main/Detail/SnippetNoteDetail.js index 05efce450..5f767b701 100644 --- a/browser/main/Detail/SnippetNoteDetail.js +++ b/browser/main/Detail/SnippetNoteDetail.js @@ -611,6 +611,7 @@ class SnippetNoteDetail extends React.Component { createdAt={formatDate(note.createdAt)} exportAsMd={this.showWarning} exportAsTxt={this.showWarning} + type={note.type} />