function DepositEtherModal () {
  Component.call(this)

  this.state = {
    buyingWithShapeshift: false,
  }
}
function CurrencyInput (props) {
  Component.call(this)

  this.state = {
    value: sanitizeValue(props.value),
  }
}
function WalletView () {
  Component.call(this)
  this.state = {
    hasCopied: false,
    copyToClipboardPressed: false,
  }
}
function AboutPage(){
    React.Component.call(this);
    this.state = {
        abouts: [],
    };
    this.fetchAbouts()
        .then(this.setState.bind(this));
}
function PendingTx () {
  Component.call(this)
  this.state = {
    valid: true,
    txData: null,
    submitting: false,
  }
}
function TokenList () {
  this.state = {
    tokens: [],
    isLoading: true,
    network: null,
  }
  Component.call(this)
}
Example #7
0
function AddTokenScreen () {
  this.state = {
    warning: null,
    address: null,
    symbol: 'TOKEN',
    decimals: 18,
  }
  Component.call(this)
}
function PendingTx () {
  Component.call(this)
  this.state = {
    isFetching: true,
    transactionType: '',
    tokenAddress: '',
    tokenSymbol: '',
    tokenDecimals: '',
  }
}
Example #9
0
function ReactSWFCompat(props) {
  React.Component.call(this, props);

  var that = this;
  this._containerRefCallback = function(c) {
    that._container = c;
  };
  this._swfRefCallback = function(c) {
    that._swf = c;
  };
}
function ShapeshiftForm () {
  Component.call(this)

  this.state = {
    depositCoin: 'btc',
    refundAddress: '',
    showQrCode: false,
    depositAddress: '',
    errorMessage: '',
    isLoading: false,
    bought: false,
  }
}
Example #11
0
/** @constructor */
function ReactSWF(props) {
  React.Component.call(this, props);

  var that = this;
  this._refCallback = function(c) {
    that._node = c;
  };

  // The only way to change Flash parameters or reload the movie is to update
  // the key of the ReactSWF element. This unmounts the previous instance and
  // reloads the movie. Store initial values to keep the DOM consistent.

  var params = {};

  for (var key in supportedFPParamNames) {
    if (supportedFPParamNames.hasOwnProperty(key) &&
        props.hasOwnProperty(key)) {
      var value = props[key];

      if (value != null) {
        var name = supportedFPParamNames[key];

        if (name === 'flashvars' && typeof value === 'object') {
          value = encodeFlashVarsObject(value);
        } else if (booleanFPParams.hasOwnProperty(key)) {
          // Force boolean parameter arguments to be boolean.
          value = !!value;
        }

        params[name] = '' + value;
      }
    }
  }

  var ie = navigator.appName === 'Microsoft Internet Explorer';
  if(ie) {
    params['movie'] = props.src;
  }

  this._node = null;
  this.state = {
    src: props.src,
    params: params
  };
}
function ShiftListItem () {
  Component.call(this)
}
function AccountDetailScreen () {
  Component.call(this)
}
Example #14
0
function AccountPanel () {
  Component.call(this)
}
function TransactionListItem () {
  Component.call(this)
}
Example #16
0
function CloseArea () { Component.call(this) }
Example #17
0
function Divider () { Component.call(this) }
function PrivateKeyImportView () {
  Component.call(this)
}
Example #19
0
function Menu () { Component.call(this) }
Example #20
0
function CopyButton () {
  Component.call(this)
}
function InitializeMenuScreen () {
  Component.call(this)
  this.animationEventEmitter = new EventEmitter()
}
function QrCodeView () {
  Component.call(this)
}
Example #23
0
function Main(props){
    React.Component.call(this);

    this.state = props.state;
}
Example #24
0
function ConfigScreen () {
  Component.call(this)
}
function AccountDetailsModal () {
  Component.call(this)
}
Example #26
0
function AccountImportSubview () {
  Component.call(this)
}
function CreateVaultCompleteScreen () {
  Component.call(this)
}
function CurrencyDisplay () {
  Component.call(this)
}
Example #29
0
function Component(props) {
  React.Component.call(this, props);
  LifecycleMixin.getInitialState.call(this);
  PropsMixin.getInitialState.call(this);
}
function Modal () {
  Component.call(this)
}