This commit is contained in:
Guillermo Rauch 2016-10-04 12:44:10 -07:00
parent d01d3868eb
commit ffa6a89c5a
4 changed files with 7 additions and 8 deletions

View file

@ -5,5 +5,5 @@ export function init() {
rpc.emit('init');
return {
type: INIT
}
};
}

View file

@ -1,7 +1,6 @@
import ms from 'ms';
import {version} from '../../package';
import {satisfies} from 'semver';
import {remote} from 'electron';
import {version} from '../../package';
import {
NOTIFICATION_MESSAGE,
NOTIFICATION_DISMISS

View file

@ -83,7 +83,7 @@ export default class Notification extends Component {
<a
className={css('dismissLink')}
onClick={this.handleDismiss}
style={{ color: this.props.userDismissColor }}
style={{color: this.props.userDismissColor}}
>[x]</a> :
null
}

View file

@ -73,9 +73,9 @@ export default class Notifications extends Component {
onDismiss={this.props.onDismissUpdate}
userDismissable
>
Version <b>{ this.props.updateVersion}</b> ready.
{ this.props.updateNote && ` ${this.props.updateNote.trim().replace(/\.$/, '')}` }
{ ' ' }
Version <b>{this.props.updateVersion}</b> ready.
{this.props.updateNote && ` ${this.props.updateNote.trim().replace(/\.$/, '')}`}
{' '}
(<a
style={{color: '#fff'}}
onClick={ev => {
@ -84,7 +84,7 @@ export default class Notifications extends Component {
}}
href={`https://github.com/zeit/hyperterm/releases/tag/${this.props.updateVersion}`}
>notes</a>).
{ ' ' }
{' '}
<a
style={{
cursor: 'pointer',