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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user