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() {
|
||||
const { devices, selectedDevice } = this.props;
|
||||
const { devices, selectedDevice, onSelectDevice } = this.props;
|
||||
console.warn('devices', devices);
|
||||
return (
|
||||
<Wrapper>
|
||||
|
@ -102,7 +102,7 @@ export class DeviceDropdown extends Component<Props> {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { devices } = this.props;
|
||||
const { devices, onSelectDevice } = this.props;
|
||||
const { transport } = this.props.connect;
|
||||
const { selectedDevice } = this.props.wallet;
|
||||
|
||||
@ -140,6 +140,7 @@ export class DeviceDropdown extends Component<Props> {
|
||||
<DeviceList
|
||||
devices={devices}
|
||||
selectedDevice={selectedDevice}
|
||||
onSelectDevice={onSelectDevice}
|
||||
/>
|
||||
{isWebUSB(transport) && (
|
||||
<Button
|
||||
|
@ -22,7 +22,7 @@ const Row = styled.div`
|
||||
const A = styled.a``;
|
||||
|
||||
const StyledParagraph = styled(Paragraph)`
|
||||
margin: 20px 50px;
|
||||
margin: 10px 50px;
|
||||
display: block;
|
||||
`;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user