How to use the redux/actions/app.doOpenModal function in redux

To help you get started, we’ve selected a few redux examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github lbryio / lbry-desktop / src / ui / redux / actions / content.js View on Github external
function attemptPlay(instantPurchaseMax = null) {
      // If you have a file_list entry, you have already purchased the file
      if (!fileInfo && (!instantPurchaseMax || !instantPurchaseEnabled || cost > instantPurchaseMax)) {
        dispatch(doOpenModal(MODALS.AFFIRM_PURCHASE, { uri }));
      } else {
        beginGetFile();
      }
    }
github lbryio / lbry-desktop / src / ui / page / file / index.js View on Github external
  openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
  prepareEdit: (publishData, uri, fileInfo) => dispatch(doPrepareEdit(publishData, uri, fileInfo, fs)),
github lbryio / lbry-desktop / src / ui / component / userVerify / index.js View on Github external
  verifyPhone: () => dispatch(doOpenModal(MODALS.PHONE_COLLECTION)),
  fetchUser: () => dispatch(doUserFetch()),
github lbryio / lbry-desktop / ui / component / commentCreate / index.js View on Github external
  openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
});
github lbryio / lbry-desktop / ui / page / channels / index.js View on Github external
  openModal: id => dispatch(doOpenModal(id)),
  fetchChannelListMine: () => dispatch(doFetchChannelListMine()),
github lbryio / lbry-desktop / src / renderer / redux / actions / wallet.js View on Github external
return (dispatch, getState) => {
    const state = getState();
    const balance = selectBalance(state);

    if (balance - amount <= 0) {
      dispatch(doOpenModal(MODALS.INSUFFICIENT_CREDITS));
      return;
    }

    dispatch({
      type: ACTIONS.SEND_TRANSACTION_STARTED,
    });

    const successCallback = results => {
      if (results === true) {
        dispatch({
          type: ACTIONS.SEND_TRANSACTION_COMPLETED,
        });
        dispatch(
          doShowSnackBar({
            message: __(`You sent ${amount} LBC`),
            linkText: __('History'),
github lbryio / lbry-desktop / ui / modal / modalRouter / index.js View on Github external
  openModal: props => dispatch(doOpenModal(props)),
  hideModal: props => dispatch(doHideModal(props)),
github lbryio / lbry-desktop / ui / component / header / index.js View on Github external
  openMobileNavigation: () => dispatch(doOpenModal(MODALS.MOBILE_NAVIGATION)),
});
github lbryio / lbry-desktop / ui / component / splash / index.js View on Github external
notifyUnlockWallet: shouldTryWithBlankPassword =>
    dispatch(doOpenModal(MODALS.WALLET_UNLOCK, { shouldTryWithBlankPassword })),
  hideModal: () => dispatch(doHideModal()),
github lbryio / lbry-desktop / src / ui / index.jsx View on Github external
rewards.setCallback('rewardApprovalRequired', () => {
  app.store.dispatch(doOpenModal(MODALS.REWARD_APPROVAL_REQUIRED));
});