2018-07-18 21:48:30 +02:00
|
|
|
import { connect } from 'react-redux';
|
|
|
|
import {
|
|
|
|
doWalletStatus,
|
|
|
|
doWalletDecrypt,
|
|
|
|
selectWalletDecryptSucceeded,
|
|
|
|
} from 'lbry-redux';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2018-07-18 21:48:30 +02:00
|
|
|
import ModalWalletDecrypt from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
walletDecryptSucceded: selectWalletDecryptSucceeded(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2018-10-29 18:23:53 +01:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2018-07-18 21:48:30 +02:00
|
|
|
decryptWallet: password => dispatch(doWalletDecrypt(password)),
|
|
|
|
updateWalletStatus: () => dispatch(doWalletStatus()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(
|
|
|
|
select,
|
|
|
|
perform
|
|
|
|
)(ModalWalletDecrypt);
|