1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 00:18:07 +00:00

Device list refactored - fix prop

This commit is contained in:
Vladimir Volek 2018-08-27 13:25:05 +02:00
parent 42dd6a8455
commit ee14e6737f
3 changed files with 4 additions and 3 deletions

View File

@ -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>

View File

@ -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

View File

@ -22,7 +22,7 @@ const Row = styled.div`
const A = styled.a``;
const StyledParagraph = styled(Paragraph)`
margin: 20px 50px;
margin: 10px 50px;
display: block;
`;