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

27 lines
598 B

/* @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);