Revert "fix flow issue"

This reverts commit 30cd39b8ce.
pull/341/head
slowbackspace 5 years ago
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…
Cancel
Save