1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

iss #758 Add InfoButton and InfoPanel in SnippetNoteDetail

This commit is contained in:
asmsuechan
2017-08-05 17:34:26 +09:00
parent 3b7225e0fa
commit 76728448ff

View File

@@ -556,6 +556,18 @@ class SnippetNoteDetail extends React.Component {
</div>
<div styleName='info-right'>
<TrashButton onClick={(e) => this.handleTrashButtonClick(e)} />
<InfoButton
onClick={(e) => this.handleInfoButtonClick(e)}
/>
<InfoPanel
storageName={currentOption.storage.name}
folderName={currentOption.folder.name}
noteLink={`[${note.title}](${location.query.key})`}
updatedAt={formatDate(note.updatedAt)}
createdAt={formatDate(note.createdAt)}
exportAsMd={this.showWarning}
exportAsTxt={this.showWarning}
/>
</div>
</div>