lbry-desktop/ui/js/component/app/index.js

27 lines
619 B
JavaScript
Raw Normal View History

2017-04-07 07:15:22 +02:00
import React from 'react';
import { connect } from 'react-redux'
import {
selectCurrentModal,
} from 'selectors/app'
import {
doCheckUpgradeAvailable,
2017-05-24 23:53:03 +02:00
doAlertError,
2017-04-07 07:15:22 +02:00
} from 'actions/app'
2017-05-15 18:34:33 +02:00
import {
doUpdateBalance,
} from 'actions/wallet'
2017-04-07 07:15:22 +02:00
import App from './view'
const select = (state) => ({
modal: selectCurrentModal(state),
})
const perform = (dispatch) => ({
2017-05-24 23:53:03 +02:00
alertError: (errorList) => dispatch(doAlertError(errorList)),
2017-04-07 07:15:22 +02:00
checkUpgradeAvailable: () => dispatch(doCheckUpgradeAvailable()),
2017-05-15 18:34:33 +02:00
updateBalance: (balance) => dispatch(doUpdateBalance(balance))
2017-04-07 07:15:22 +02:00
})
export default connect(select, perform)(App)