/* @flow */ 'use strict'; import React, { Component } from 'react'; import Preloader from './Preloader'; import Select from 'react-select'; type State = { version: string; target: string; url: string; } const installers = [ { id: 'Windows', value: 'trezor-bridge-2.0.11-win32-install.exe', label: 'Windows' }, { id: 'macOS', value: 'trezor-bridge-2.0.11.pkg', label: 'Mac OS X' }, { id: 'Linux', value: 'trezor-bridge_2.0.11_amd64.deb', label: 'Linux 64-bit (deb)' }, { id: 'Linux-rpm', value: 'trezor-bridge_2.0.11_amd64.rpm', label: 'Linux 64-bit (rpm)' }, { value: 'trezor-bridge_2.0.11_amd32.deb', label: 'Linux 32-bit (deb)' }, { value: 'trezor-bridge_2.0.11_amd32.rpm', label: 'Linux 32-bit (rpm)' }, ]; export default class InstallBridge extends Component { state: State; constructor(props) { super(props); const currentTarget = installers.find(i => i.id === props.browserState.osname); this.state = { version: '2.0.12', url: 'https://wallet.trezor.io/data/bridge/2.0.12/', target: null, }; } onChange(value) { this.setState({ target: value }); } componentWillUpdate() { if (this.props.browserState.osname && !this.state.target) { const currentTarget = installers.find(i => i.id === this.props.browserState.osname); this.setState({ target: currentTarget }) } } render() { if (!this.state.target) { return ; } const url = `${ this.state.url }${ this.state.target.value }`; return (

TREZOR Bridge. Version 2.0.12

New communication tool to facilitate the connection between your TREZOR and your internet browser.