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

21 lines
422 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,
} from 'actions/app'
import App from './view'
const select = (state) => ({
modal: selectCurrentModal(state),
})
const perform = (dispatch) => ({
checkUpgradeAvailable: () => dispatch(doCheckUpgradeAvailable()),
})
export default connect(select, perform)(App)