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

clean old codes

This commit is contained in:
Dick Choi
2016-07-14 14:37:26 +09:00
parent 2d46d12628
commit 922ae7a274
5 changed files with 10 additions and 101 deletions

View File

@@ -3,6 +3,8 @@ import CSSModules from 'browser/lib/CSSModules'
import styles from './InfoTab.styl'
const appVersion = global.process.version
const electron = require('electron')
const { shell } = electron
class InfoTab extends React.Component {
constructor (props) {
@@ -12,6 +14,11 @@ class InfoTab extends React.Component {
}
}
handleLinkClick (e) {
shell.openExternal(e.currentTarget.href)
e.preventDefault()
}
render () {
return (
<div styleName='root'>
@@ -25,7 +32,9 @@ class InfoTab extends React.Component {
- License : GPLv3
</li>
<li>
- Issue Tracker : <a href='https://github.com/BoostIO/Boostnote/issues'>https://github.com/BoostIO/Boostnote/issues</a>
- Issue Tracker : <a href='https://github.com/BoostIO/Boostnote/issues'
onClick={(e) => this.handleLinkClick(e)}
>https://github.com/BoostIO/Boostnote/issues</a>
</li>
</ul>
</div>