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