lbry-desktop/src/renderer/modal/modalWalletEncrypt/index.js
2018-11-20 11:05:25 -05:00

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);