1
0
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:
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() { render() {
const { devices, selectedDevice } = this.props; const { devices, selectedDevice, onSelectDevice } = this.props;
console.warn('devices', devices); console.warn('devices', devices);
return ( return (
<Wrapper> <Wrapper>

View File

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

View File

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