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.
27 lines
598 B
27 lines
598 B
5 years ago
|
/* @flow */
|
||
|
import { connect } from 'react-redux';
|
||
|
import type { MapStateToProps } from 'react-redux';
|
||
|
import type { State } from 'flowtype';
|
||
|
import Dashboard from "./index";
|
||
|
|
||
|
type OwnProps = {};
|
||
|
|
||
|
type StateProps = {
|
||
|
localStorage: $ElementType<State, 'localStorage'>,
|
||
|
wallet: $ElementType<State, 'wallet'>,
|
||
|
};
|
||
|
|
||
|
export type Props = StateProps;
|
||
|
|
||
|
const mapStateToProps: MapStateToProps<State, OwnProps, StateProps> = (
|
||
|
state: State
|
||
|
): StateProps => ({
|
||
|
localStorage: state.localStorage,
|
||
|
wallet: state.wallet,
|
||
|
});
|
||
|
|
||
|
export default connect(
|
||
|
mapStateToProps,
|
||
|
null
|
||
|
)(Dashboard);
|