<commit_before>import React from 'react';
import Link from 'component/link';
import Modal from 'component/modal';
import {
  FormRow
} from 'component/form';

const WalletSend = (props) => {
  const {
    sendToAddress,
    closeModal,
    modal,
    setAmount,
    setAddress,
    amount,
    address,
  } = props

  return (
    <section className="card">
      <form onSubmit={sendToAddress}>
        <div className="card__title-primary">
          <h3>{__("Send Credits")}</h3>
        </div>
        <div className="card__content">
          <FormRow label={__("Amount")} postfix="LBC" step="0.01" type="number" placeholder="1.23" size="10" onChange={setAmount} value={amount} />
        </div>
        <div className="card__content">
          <FormRow label={__("Recipient Address")} placeholder="bbFxRyXXXXXXXXXXXZD8nE7XTLUxYnddTs" type="text" size="60" onChange={setAddress} value={address} />
        </div>
        <div className="card__actions card__actions--form-submit">
          <Link button="primary" label={_("Send")} onClick={sendToAddress} disabled={!(parseFloat(amount) > 0.0) || !address} />
          <input type='submit' className='hidden' />
        </div>
      </form>
      {modal == 'insufficientBalance' && <Modal isOpen={true} contentLabel={__("Insufficient balance")} onConfirmed={closeModal}>
        {__("Insufficient balance: after this transaction you would have less than 1 LBC in your wallet.")}
      </Modal>}
      {modal == 'transactionSuccessful' && <Modal isOpen={true} contentLabel={__("Transaction successful")} onConfirmed={closeModal}>
        {__("Your transaction was successfully placed in the queue.")}
      </Modal>}
      {modal == 'transactionFailed' && <Modal isOpen={true} contentLabel={__("Transaction failed")} onConfirmed={closeModal}>
        {__("Something went wrong")}:
      </Modal>}
    </section>
  )
}

export default WalletSend<commit_msg>Quick fix for Issue #198 , not being able to go to SEND/RECEIVE page<commit_after>import React from 'react';
import Link from 'component/link';
import Modal from 'component/modal';
import {
  FormRow
} from 'component/form';

const WalletSend = (props) => {
  const {
    sendToAddress,
    closeModal,
    modal,
    setAmount,
    setAddress,
    amount,
    address,
  } = props

  return (
    <section className="card">
      <form onSubmit={sendToAddress}>
        <div className="card__title-primary">
          <h3>{__("Send Credits")}</h3>
        </div>
        <div className="card__content">
          <FormRow label={__("Amount")} postfix="LBC" step="0.01" type="number" placeholder="1.23" size="10" onChange={setAmount} value={amount} />
        </div>
        <div className="card__content">
          <FormRow label={__("Recipient Address")} placeholder="bbFxRyXXXXXXXXXXXZD8nE7XTLUxYnddTs" type="text" size="60" onChange={setAddress} value={address} />
        </div>
        <div className="card__actions card__actions--form-submit">
          <Link button="primary" label={__("Send")} onClick={sendToAddress} disabled={!(parseFloat(amount) > 0.0) || !address} />
          <input type='submit' className='hidden' />
        </div>
      </form>
      {modal == 'insufficientBalance' && <Modal isOpen={true} contentLabel={__("Insufficient balance")} onConfirmed={closeModal}>
        {__("Insufficient balance: after this transaction you would have less than 1 LBC in your wallet.")}
      </Modal>}
      {modal == 'transactionSuccessful' && <Modal isOpen={true} contentLabel={__("Transaction successful")} onConfirmed={closeModal}>
        {__("Your transaction was successfully placed in the queue.")}
      </Modal>}
      {modal == 'transactionFailed' && <Modal isOpen={true} contentLabel={__("Transaction failed")} onConfirmed={closeModal}>
        {__("Something went wrong")}:
      </Modal>}
    </section>
  )
}

export default WalletSend
{'fraction_non_alphanumeric': 0.1545407636738906, 'fraction_numerical': 0.009545923632610939, 'mean_word_length': 3.609988109393579, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '956418', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1145, 'n_words': 271}