1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-23 06:31:51 +00:00

improve style of StatusBar & display pathname from StatusBar

This commit is contained in:
Rokt33r
2016-05-14 19:03:05 +09:00
parent da19066fb8
commit ce52d5cf42
2 changed files with 20 additions and 3 deletions

View File

@@ -49,14 +49,16 @@ class StatusBar extends React.Component {
}
render () {
let { config } = this.props
let { config, location } = this.props
return (
<div className='StatusBar'
styleName='root'
>
<div styleName='pathname'>{location.pathname}</div>
{this.state.updateAvailable
? <button onClick={this.updateApp} styleName='update'>
<i className='fa fa-cloud-download'/> Update is available!
<i styleName='update-icon' className='fa fa-cloud-download'/> Update is available!
</button>
: null
}