mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-09 15:40:55 +00:00
parent
30cd39b8ce
commit
39a119f071
@ -6,7 +6,7 @@ import * as ModalActions from 'actions/ModalActions';
|
||||
import { toggleDeviceDropdown } from 'actions/WalletActions';
|
||||
import type { State } from 'flowtype';
|
||||
|
||||
export type StateProps = {|
|
||||
export type StateProps = {
|
||||
connect: $ElementType<State, 'connect'>,
|
||||
accounts: $ElementType<State, 'accounts'>,
|
||||
router: $ElementType<State, 'router'>,
|
||||
@ -16,9 +16,9 @@ export type StateProps = {|
|
||||
wallet: $ElementType<State, 'wallet'>,
|
||||
devices: $ElementType<State, 'devices'>,
|
||||
pending: $ElementType<State, 'pending'>,
|
||||
|}
|
||||
}
|
||||
|
||||
export type DispatchProps = {|
|
||||
export type DispatchProps = {
|
||||
toggleDeviceDropdown: typeof toggleDeviceDropdown,
|
||||
addAccount: typeof DiscoveryActions.addAccount,
|
||||
acquireDevice: typeof TrezorConnectActions.acquire,
|
||||
@ -27,6 +27,6 @@ export type DispatchProps = {|
|
||||
gotoDeviceSettings: typeof RouterActions.gotoDeviceSettings,
|
||||
onSelectDevice: typeof RouterActions.selectDevice,
|
||||
gotoExternalWallet: typeof ModalActions.gotoExternalWallet,
|
||||
|}
|
||||
}
|
||||
|
||||
export type Props = {|...StateProps, ...DispatchProps|};
|
||||
export type Props = StateProps & DispatchProps;
|
@ -229,7 +229,7 @@ class LeftNavigation extends React.PureComponent<Props, State> {
|
||||
<WalletTypeIconWrapper>
|
||||
<WalletTypeIcon
|
||||
onClick={(e) => {
|
||||
if (selectedDevice && isDeviceReady) {
|
||||
if (isDeviceReady) {
|
||||
this.props.duplicateDevice(selectedDevice);
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user