mirror of https://github.com/trezor/trezor-wallet
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.4 KiB
35 lines
1.4 KiB
/* @flow */
|
|
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
|
import * as DiscoveryActions from 'actions/DiscoveryActions';
|
|
import * as RouterActions from 'actions/RouterActions';
|
|
import * as ModalActions from 'actions/ModalActions';
|
|
import * as WalletActions from 'actions/WalletActions';
|
|
import type { State } from 'flowtype';
|
|
|
|
export type StateProps = {|
|
|
connect: $ElementType<State, 'connect'>,
|
|
accounts: $ElementType<State, 'accounts'>,
|
|
router: $ElementType<State, 'router'>,
|
|
fiat: $ElementType<State, 'fiat'>,
|
|
localStorage: $ElementType<State, 'localStorage'>,
|
|
discovery: $ElementType<State, 'discovery'>,
|
|
wallet: $ElementType<State, 'wallet'>,
|
|
devices: $ElementType<State, 'devices'>,
|
|
pending: $ElementType<State, 'pending'>,
|
|
|};
|
|
|
|
export type DispatchProps = {|
|
|
toggleDeviceDropdown: typeof WalletActions.toggleDeviceDropdown,
|
|
toggleSidebar: typeof WalletActions.toggleSidebar,
|
|
setHideBalance: typeof WalletActions.setHideBalance,
|
|
addAccount: typeof DiscoveryActions.addAccount,
|
|
acquireDevice: typeof TrezorConnectActions.acquire,
|
|
forgetDevice: typeof TrezorConnectActions.forget,
|
|
duplicateDevice: typeof TrezorConnectActions.duplicateDevice,
|
|
gotoDeviceSettings: typeof RouterActions.gotoDeviceSettings,
|
|
onSelectDevice: typeof RouterActions.selectDevice,
|
|
gotoExternalWallet: typeof ModalActions.gotoExternalWallet,
|
|
|};
|
|
|
|
export type Props = {| ...StateProps, ...DispatchProps |};
|