25 lines
732 B
JavaScript
25 lines
732 B
JavaScript
import React from "react";
|
|
import { connect } from "react-redux";
|
|
|
|
import { selectCurrentModal } from "selectors/app";
|
|
import {
|
|
doCheckUpgradeAvailable,
|
|
doAlertError,
|
|
doRecordScroll,
|
|
doCheckDaemonVersion,
|
|
} from "actions/app";
|
|
import { doUpdateBalance } from "actions/wallet";
|
|
import App from "./view";
|
|
|
|
const select = state => ({
|
|
modal: selectCurrentModal(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
alertError: errorList => dispatch(doAlertError(errorList)),
|
|
checkUpgradeAvailable: () => dispatch(doCheckUpgradeAvailable()),
|
|
updateBalance: balance => dispatch(doUpdateBalance(balance)),
|
|
recordScroll: scrollPosition => dispatch(doRecordScroll(scrollPosition)),
|
|
});
|
|
|
|
export default connect(select, perform)(App);
|