|
|
|
@ -1,13 +1,15 @@
|
|
|
|
|
/* @flow */
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import TrezorConnect from 'trezor-connect';
|
|
|
|
|
|
|
|
|
|
import styled from 'styled-components';
|
|
|
|
|
import type { TrezorDevice } from 'flowtype';
|
|
|
|
|
|
|
|
|
|
import type { Props } from '../common';
|
|
|
|
|
|
|
|
|
|
import Divider from '../Divider';
|
|
|
|
|
|
|
|
|
|
const Wrapper = styled.div``;
|
|
|
|
|
|
|
|
|
|
export const DeviceSelect = (props: Props) => {
|
|
|
|
|
const { devices } = props;
|
|
|
|
|
const { transport } = props.connect;
|
|
|
|
@ -212,12 +214,12 @@ export class DeviceDropdown extends Component<Props> {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<Wrapper>
|
|
|
|
|
{currentDeviceMenu}
|
|
|
|
|
{deviceList.length > 1 ? <Divider textLeft="Other devices" borderBottom /> : null}
|
|
|
|
|
{deviceList}
|
|
|
|
|
{webUsbButton}
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
</Wrapper>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|