1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-07 14:09:21 +00:00

Add exports to infoPanel

This commit is contained in:
asmsuechan
2017-07-15 19:33:58 +09:00
parent b21baf1ce5
commit 6ea2b5e1d9
4 changed files with 37 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ import CSSModules from 'browser/lib/CSSModules'
import styles from './InfoPanel.styl'
const InfoPanel = ({
storageName, folderName, noteLink, updatedAt, createdAt
storageName, folderName, noteKey, updatedAt, createdAt, exportAsMd, exportAsTxt
}) => (
<div className='infoPanel' styleName='control-infoButton-panel' style={{display: 'none'}}>
<div styleName='group-section'>
@@ -47,7 +47,15 @@ const InfoPanel = ({
</div>
</div>
<div styleName='group-export' />
<div styleName='group-export'>
<i className='fa fa-file-text fa-fw'
onClick={(e) => exportAsMd(e)}
/>
<i className='fa fa-file-text fa-fw'
onClick={(e) => exportAsTxt(e)}
/>
</div>
</div>
)
@@ -56,7 +64,9 @@ InfoPanel.propTypes = {
folderName: PropTypes.string.isRequired,
noteLink: PropTypes.string.isRequired,
updatedAt: PropTypes.string.isRequired,
createdAt: PropTypes.string.isRequired
createdAt: PropTypes.string.isRequired,
exportAsMd: PropTypes.func.isRequired,
exportAsTxt: PropTypes.func.isRequired
}
export default CSSModules(InfoPanel, styles)