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.
trezor-wallet/src/views/Wallet/views/Dashboard/Container.js

21 lines
550 B

/* @flow */
import { connect } from 'react-redux';
import type { State, Dispatch } from 'flowtype';
import Dashboard from './index';
type OwnProps = {||};
type StateProps = {|
localStorage: $ElementType<State, 'localStorage'>,
wallet: $ElementType<State, 'wallet'>,
|};
export type Props = {| ...StateProps |};
const mapStateToProps = (state: State): StateProps => ({
localStorage: state.localStorage,
wallet: state.wallet,
});
export default connect<Props, OwnProps, StateProps, _, State, Dispatch>(mapStateToProps)(Dashboard);