diff --git a/src/views/Landing/Container.js b/src/views/Landing/Container.js index 6c891761..2a58e643 100644 --- a/src/views/Landing/Container.js +++ b/src/views/Landing/Container.js @@ -1,10 +1,13 @@ /* @flow */ import { connect } from 'react-redux'; +import { bindActionCreators } from 'redux'; +import * as RouterActions from 'actions/RouterActions'; import type { MapStateToProps, MapDispatchToProps } from 'react-redux'; import type { State, Dispatch } from 'flowtype'; import LandingPage from './index'; + export type StateProps = { localStorage: $ElementType, modal: $ElementType, @@ -34,8 +37,8 @@ const mapStateToProps: MapStateToProps = (state: St devices: state.devices, }); -const mapDispatchToProps: MapDispatchToProps = (/* dispatch: Dispatch */): DispatchProps => ({ - +const mapDispatchToProps: MapDispatchToProps = (dispatch: Dispatch): DispatchProps => ({ + selectFirstAvailableDevice: bindActionCreators(RouterActions.selectFirstAvailableDevice, dispatch), }); export default connect(mapStateToProps, mapDispatchToProps)(LandingPage); \ No newline at end of file diff --git a/src/views/Landing/components/InstallBridge/index.js b/src/views/Landing/components/InstallBridge/index.js index 3e7557d5..c0743e3d 100644 --- a/src/views/Landing/components/InstallBridge/index.js +++ b/src/views/Landing/components/InstallBridge/index.js @@ -109,14 +109,15 @@ export default class InstallBridge extends Component { } render() { - if (!this.state.target) { + const { target } = this.state; + if (!target) { return ; } const changelog = this.props.transport.bridge.changelog.map(entry => (
  • {entry}
  • )); - const url = `${this.state.uri}${this.state.target.value}`; + const url = `${this.state.uri}${target.value}`; return ( TREZOR Bridge.{this.state.currentVersion} @@ -125,7 +126,7 @@ export default class InstallBridge extends Component { this.onChange(v)} options={this.state.installers} /> @@ -140,6 +141,17 @@ export default class InstallBridge extends Component { + {target.signature && ( +

    + Check PGP signature + +

    + )}

    { changelog } Learn more about latest versions in