lbry-desktop/ui/modal/modalWalletDecrypt/index.js
zeppi ee9f63a161 integrate all the things
bugfix

wip

flow

fix

cleaning

clean
2021-10-15 23:49:41 -04:00

17 lines
637 B
JavaScript

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