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

wip

flow

fix

cleaning

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

17 lines
599 B
JavaScript

import { connect } from 'react-redux';
import { doWalletUnlock } from 'redux/actions/wallet';
import { selectWalletUnlockSucceeded } from 'redux/selectors/wallet';
import { doQuit, doHideModal } from 'redux/actions/app';
import ModalWalletUnlock from './view';
const select = (state) => ({
walletUnlockSucceded: selectWalletUnlockSucceeded(state),
});
const perform = (dispatch) => ({
closeModal: () => dispatch(doHideModal()),
quit: () => dispatch(doQuit()),
unlockWallet: (password) => dispatch(doWalletUnlock(password)),
});
export default connect(select, perform)(ModalWalletUnlock);