Options
All
  • Public
  • Public/Protected
  • All
Menu

Module view/actions/MineButton

Type aliases

Functions

Type aliases

OwnProps

OwnProps: object

React props for MineButton component

Type declaration

  • item: string | undefined

    Item equipped in MINING slot

Props

Functions

Const MineButton

  • MineButton(__namedParameters: object): Element
  • React Component representing action button for mining resource from the tile where logged player is standing right now. It handles whether this action should be enabled and commits this action to the blockchain.

    Parameters

    • __namedParameters: object
      • block: undefined | BlockInfo
      • buttonProps: buttonProps
      • flowControl: object
        • setError: function
            • (msg: string): void
            • Parameters

              • msg: string

              Returns void

        • setStart: function
            • (): void
            • Returns void

        • setSuccess: function
            • (msg: string): void
            • Parameters

              • msg: string

              Returns void

      • item: undefined | string
      • player: undefined | PlayerInfo

    Returns Element

Generated using TypeDoc