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

wip

flow

fix

cleaning

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

18 lines
721 B
JavaScript

import { connect } from 'react-redux';
import { selectWalletEncryptSucceeded, selectWalletEncryptResult } from 'redux/selectors/wallet';
import { doWalletStatus, doWalletEncrypt } from 'redux/actions/wallet';
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);