mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-29 16:31:33 +00:00
26 lines
709 B
JavaScript
26 lines
709 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
doWalletStatus,
|
|
doWalletEncrypt,
|
|
selectWalletEncryptPending,
|
|
selectWalletEncryptSucceeded,
|
|
selectWalletEncryptResult,
|
|
} from 'lbry-redux';
|
|
import { doHideModal } from 'redux/actions/app';
|
|
import ModalWalletEncrypt from './view';
|
|
|
|
const select = state => ({
|
|
walletEncryptSucceded: selectWalletEncryptSucceeded(state),
|
|
walletEncryptResult: selectWalletEncryptResult(state),
|
|
});
|
|
|
|
const perform = dispatch => ({
|
|
closeModal: () => dispatch(doHideModal()),
|
|
encryptWallet: password => dispatch(doWalletEncrypt(password)),
|
|
updateWalletStatus: () => dispatch(doWalletStatus()),
|
|
});
|
|
|
|
export default connect(
|
|
select,
|
|
perform
|
|
)(ModalWalletEncrypt);
|