1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-10 08:00:57 +00:00

Revert "fix flow issue"

This reverts commit 30cd39b8ce.
This commit is contained in:
slowbackspace 2019-01-16 15:59:14 +01:00
parent 30cd39b8ce
commit 39a119f071
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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();
} }