lbry-desktop/ui/js/component/app/index.js
2017-05-24 20:07:38 -04:00

26 lines
619 B
JavaScript

import React from 'react';
import { connect } from 'react-redux'
import {
selectCurrentModal,
} from 'selectors/app'
import {
doCheckUpgradeAvailable,
doAlertError,
} 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))
})
export default connect(select, perform)(App)