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';
5 years ago
import type { State, Dispatch } from 'flowtype';
5 years ago
import Dashboard from './index';
5 years ago
type OwnProps = {||};
5 years ago
type StateProps = {|
localStorage: $ElementType<State, 'localStorage'>,
wallet: $ElementType<State, 'wallet'>,
5 years ago
|};
5 years ago
export type Props = {| ...StateProps |};
5 years ago
const mapStateToProps = (state: State): StateProps => ({
localStorage: state.localStorage,
wallet: state.wallet,
});
5 years ago
export default connect<Props, OwnProps, StateProps, _, State, Dispatch>(mapStateToProps)(Dashboard);