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

modify: add esc button for config modal

This commit is contained in:
sota1235
2016-12-30 15:43:49 +09:00
parent ae97ff0f98
commit 1fea39f1b7
2 changed files with 24 additions and 4 deletions

View File

@@ -33,6 +33,10 @@ class Preferences extends React.Component {
}
}
handleEscButtonClick () {
this.props.close()
}
renderContent () {
const { boundingBox } = this.state
let { dispatch, config, data } = this.props
@@ -113,6 +117,10 @@ class Preferences extends React.Component {
<div styleName='top-bar'>
<p>Your menu for Boostnote</p>
</div>
<button styleName='top-bar-close' onClick={(e) => this.handleEscButtonClick(e)}>
<div styleName='top-bar-close-mark'>X</div>
<div styleName='top-bar-close-text'>esc</div>
</button>
<div styleName='nav'>
{navButtons}
</div>