madiator.com/ui/modal/modalWalletUnlock/index.js

20 lines
548 B
JavaScript
Raw Normal View History

2021-08-16 12:11:25 +02:00
import { connect } from 'react-redux';
import { doWalletUnlock, selectWalletUnlockSucceeded } from 'lbry-redux';
import { doQuit, doHideModal } from 'redux/actions/app';
import ModalWalletUnlock from './view';
const select = state => ({
walletUnlockSucceded: selectWalletUnlockSucceeded(state),
});
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
quit: () => dispatch(doQuit()),
unlockWallet: password => dispatch(doWalletUnlock(password)),
});
export default connect(
select,
perform
)(ModalWalletUnlock);