mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
Device list refactored - fix prop
This commit is contained in:
parent
42dd6a8455
commit
ee14e6737f
@ -15,7 +15,7 @@ class DeviceList extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { devices, selectedDevice } = this.props;
|
const { devices, selectedDevice, onSelectDevice } = this.props;
|
||||||
console.warn('devices', devices);
|
console.warn('devices', devices);
|
||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
|
@ -102,7 +102,7 @@ export class DeviceDropdown extends Component<Props> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { devices } = this.props;
|
const { devices, onSelectDevice } = this.props;
|
||||||
const { transport } = this.props.connect;
|
const { transport } = this.props.connect;
|
||||||
const { selectedDevice } = this.props.wallet;
|
const { selectedDevice } = this.props.wallet;
|
||||||
|
|
||||||
@ -140,6 +140,7 @@ export class DeviceDropdown extends Component<Props> {
|
|||||||
<DeviceList
|
<DeviceList
|
||||||
devices={devices}
|
devices={devices}
|
||||||
selectedDevice={selectedDevice}
|
selectedDevice={selectedDevice}
|
||||||
|
onSelectDevice={onSelectDevice}
|
||||||
/>
|
/>
|
||||||
{isWebUSB(transport) && (
|
{isWebUSB(transport) && (
|
||||||
<Button
|
<Button
|
||||||
|
@ -22,7 +22,7 @@ const Row = styled.div`
|
|||||||
const A = styled.a``;
|
const A = styled.a``;
|
||||||
|
|
||||||
const StyledParagraph = styled(Paragraph)`
|
const StyledParagraph = styled(Paragraph)`
|
||||||
margin: 20px 50px;
|
margin: 10px 50px;
|
||||||
display: block;
|
display: block;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user