|
|
@ -16,9 +16,11 @@ class ConnectScreen extends Component { |
|
|
|
]), |
|
|
|
]), |
|
|
|
h( |
|
|
|
h( |
|
|
|
'button.btn-primary.btn--large', |
|
|
|
'button.btn-primary.btn--large', |
|
|
|
{ onClick: () => global.platform.openWindow({ |
|
|
|
{ |
|
|
|
|
|
|
|
onClick: () => global.platform.openWindow({ |
|
|
|
url: 'https://google.com/chrome', |
|
|
|
url: 'https://google.com/chrome', |
|
|
|
}), style: { margin: 12 } }, |
|
|
|
}), |
|
|
|
|
|
|
|
}, |
|
|
|
this.context.t('downloadGoogleChrome') |
|
|
|
this.context.t('downloadGoogleChrome') |
|
|
|
), |
|
|
|
), |
|
|
|
]) |
|
|
|
]) |
|
|
@ -49,8 +51,7 @@ class ConnectScreen extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
render () { |
|
|
|
render () { |
|
|
|
const isChrome = window.navigator.userAgent.search('Chrome') !== -1 |
|
|
|
if (this.props.browserSupported) { |
|
|
|
if (isChrome) { |
|
|
|
|
|
|
|
return this.renderConnectScreen() |
|
|
|
return this.renderConnectScreen() |
|
|
|
} |
|
|
|
} |
|
|
|
return this.renderUnsupportedBrowser() |
|
|
|
return this.renderUnsupportedBrowser() |
|
|
@ -59,7 +60,8 @@ class ConnectScreen extends Component { |
|
|
|
|
|
|
|
|
|
|
|
ConnectScreen.propTypes = { |
|
|
|
ConnectScreen.propTypes = { |
|
|
|
connectToTrezor: PropTypes.func.isRequired, |
|
|
|
connectToTrezor: PropTypes.func.isRequired, |
|
|
|
btnText: PropTypes.string, |
|
|
|
btnText: PropTypes.string.isRequired, |
|
|
|
|
|
|
|
browserSupported: PropTypes.bool.isRequired, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ConnectScreen.contextTypes = { |
|
|
|
ConnectScreen.contextTypes = { |
|
|
|