How to use the redux/actions.loader 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 swaponline / swap.react / shared / components / modals / EosRegisterModal / EosRegisterModal.js View on Github external
handleSubmit = async () => {
    const { accountName, privateKey } = this.state

    actions.loader.show(true)

    try {
      await actions.eos.register(accountName, privateKey)
      await actions.eos.getBalance()

      actions.modals.close(constants.modals.EosRegister)
    } catch (e) {
      console.error(e)
      this.setState({ error: e.toString() })
    }

    actions.loader.hide()
  }
github swaponline / swap.react / shared / components / modals / TelosChangeAccountModal / TelosChangeAccountModal.js View on Github external
handleSubmit = async () => {
    const { accountName, privateKey } = this.state

    actions.loader.show(true)

    try {
      await actions.tlos.register(accountName, privateKey)
      await actions.tlos
        .getBalance()

      actions.modals.close(constants.modals.TelosChangeAccount)
    } catch (e) {
      console.error(e)
      this.setState({ error: e.toString() })
    }

    actions.loader.hide()
  }
github swaponline / swap.react / shared / components / modals / TelosChangeAccountModal / TelosChangeAccountModal.js View on Github external
const { accountName, privateKey } = this.state

    actions.loader.show(true)

    try {
      await actions.tlos.register(accountName, privateKey)
      await actions.tlos
        .getBalance()

      actions.modals.close(constants.modals.TelosChangeAccount)
    } catch (e) {
      console.error(e)
      this.setState({ error: e.toString() })
    }

    actions.loader.hide()
  }
github swaponline / swap.react / shared / components / modals / EosBuyAccountModal / EosBuyAccountModal.js View on Github external
handleSubmit = async () => {
    actions.loader.show(true)

    try {
      await actions.eos.buyAccount()

      actions.modals.close(constants.modals.EosBuyAccount)
    } catch (e) {
      console.error(e)
      this.setState({ error: e.toString() })
    }

    actions.loader.hide()
  }
github swaponline / swap.react / shared / components / modals / TelosRegisterModal / TelosRegisterModal.js View on Github external
const { accountName, privateKey } = this.state

    actions.loader.show(true)

    try {
      await actions.tlos.register(accountName, privateKey)
      await actions.tlos
        .getBalance()

      actions.modals.close(constants.modals.TelosRegister)
    } catch (e) {
      console.error(e)
      this.setState({ error: e.toString() })
    }

    actions.loader.hide()
  }
github swaponline / swap.react / shared / pages / Swap / EthToBtc.js View on Github external
overProgress = ({ flow, length }) => {
    actions.loader.show(true, '', '', true, { flow, length, name: 'ETH2BTC' })
  }
github swaponline / swap.react / shared / redux / actions / token.js View on Github external
.on('transactionHash', (hash) => {
        const txId = `${config.link.etherscan}/tx/${hash}`
        actions.loader.show(true, { txId })
      })
      .on('error', (err) => {
github swaponline / swap.react / shared / pages / Swap / LtcToEth.js View on Github external
overProgress = ({ flow, length }) => {
    actions.loader.show(true, '', '', true, { flow, length, name: 'LTC2ETH' })
  }
github swaponline / swap.react / shared / pages / Swap / BtcToLtc.js View on Github external
overProgress = ({ flow, length }) => {
    actions.loader.show(true, '', '', true, { flow, length, name: 'BTC2LTC' })
  }
github swaponline / swap.react / shared / pages / Swap / LtcToBtc.js View on Github external
overProgress = ({ flow, length }) => {
    actions.loader.show(true, '', '', true, { flow, length, name: 'LTC2BTC' })
  }