lbry-desktop/ui/modal/modalWalletUnlock/index.js

20 lines
548 B
JavaScript
Raw Normal View History

2018-07-18 15:48:30 -04:00
import { connect } from 'react-redux';
2019-08-20 08:29:59 -04:00
import { doWalletUnlock, selectWalletUnlockSucceeded } from 'lbry-redux';
2019-08-27 22:35:07 -04:00
import { doQuit, doHideModal } from 'redux/actions/app';
2018-07-18 15:48:30 -04:00
import ModalWalletUnlock from './view';
const select = state => ({
walletUnlockSucceded: selectWalletUnlockSucceeded(state),
});
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
2018-07-18 15:48:30 -04:00
quit: () => dispatch(doQuit()),
unlockWallet: password => dispatch(doWalletUnlock(password)),
});
export default connect(
select,
perform
)(ModalWalletUnlock);