lbry-desktop/src/renderer/modal/modalWalletUnlock/index.js

24 lines
582 B
JavaScript
Raw Normal View History

2018-07-18 21:48:30 +02:00
import { connect } from 'react-redux';
import {
doWalletUnlock,
selectWalletUnlockPending,
selectWalletUnlockSucceeded,
} from 'lbry-redux';
import { doQuit, doHideModal } from 'redux/actions/app';
2018-07-18 21:48:30 +02:00
import ModalWalletUnlock from './view';
const select = state => ({
walletUnlockSucceded: selectWalletUnlockSucceeded(state),
});
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
2018-07-18 21:48:30 +02:00
quit: () => dispatch(doQuit()),
unlockWallet: password => dispatch(doWalletUnlock(password)),
});
export default connect(
select,
perform
)(ModalWalletUnlock);