Skip to content

Commit

Permalink
Don't show close button in footer on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
harshjv committed Oct 12, 2016
1 parent fcfbedc commit 4486fd3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "donut",
"version": "1.0.0",
"version": "1.0.1",
"description": "Cross platform cryptocurrency tracker",
"main": "main.js",
"scripts": {
Expand Down
13 changes: 3 additions & 10 deletions src/app/components/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default class Footer extends React.Component {
this.updateInterval = this.updateInterval.bind(this)
this.openGitHubLink = this.openGitHubLink.bind(this)
this.renderIntervalOptions = this.renderIntervalOptions.bind(this)
this.renderRightButtonGroup = this.renderRightButtonGroup.bind(this)
}

shouldComponentUpdate (nextProps, nextState) {
Expand Down Expand Up @@ -79,7 +80,7 @@ export default class Footer extends React.Component {
)
} else {
return (
<button className='btn btn-default' onClick={this.openGitHubLink}>
<button className='btn btn-default pull-right' onClick={this.openGitHubLink}>
<span className='icon icon-github icon-text' />
v{pkg.version}
</button>
Expand All @@ -99,15 +100,7 @@ export default class Footer extends React.Component {
</button>
{this.renderIntervalOptions()}
</div>
<div className='btn-group pull-right'>
<button className='btn btn-default' onClick={this.openGitHubLink}>
<span className='icon icon-github icon-text' />
v{pkg.version}
</button>
<button className='btn btn-default' onClick={this.quit}>
<span className='icon icon-cancel' />
</button>
</div>
{this.renderRightButtonGroup()}
</div>
</footer>
)
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Cross platform cryptocurrency tracker",
"homepage": "https://github.com/harshjv/donut",
"license": "MIT",
"version": "1.0.0",
"version": "1.0.1",
"main": "main.js",
"repository": "https://github.com/harshjv/donut",
"keywords": [
Expand Down

0 comments on commit 4486fd3

Please sign in to comment.