lbry-desktop/src/renderer/modal/modalWalletDecrypt/index.js
2018-10-29 13:25:22 -04:00

23 lines
573 B
JavaScript

import { connect } from 'react-redux';
import {
doHideNotification,
doWalletStatus,
doWalletDecrypt,
selectWalletDecryptSucceeded,
} from 'lbry-redux';
import ModalWalletDecrypt from './view';
const select = state => ({
walletDecryptSucceded: selectWalletDecryptSucceeded(state),
});
const perform = dispatch => ({
closeModal: () => dispatch(doHideNotification()),
decryptWallet: password => dispatch(doWalletDecrypt(password)),
updateWalletStatus: () => dispatch(doWalletStatus()),
});
export default connect(
select,
perform
)(ModalWalletDecrypt);