// @flow import * as MODALS from 'constants/modal_types'; import React from 'react'; import Button from 'component/button'; import { Form, FormField } from 'component/common/form'; import { Formik } from 'formik'; import { validateSendTx } from 'util/form-validation'; import Card from 'component/common/card'; import I18nMessage from 'component/i18nMessage'; import LbcSymbol from 'component/common/lbc-symbol'; import WalletSpendableBalanceHelp from 'component/walletSpendableBalanceHelp'; type DraftTransaction = { address: string, amount: ?number, // So we can use a placeholder in the input }; type Props = { openModal: (id: string, { address: string, amount: number }) => void, balance: number, }; class WalletSend extends React.PureComponent { constructor() { super(); (this: any).handleSubmit = this.handleSubmit.bind(this); } handleSubmit(values: DraftTransaction) { const { openModal } = this.props; const { address, amount } = values; if (amount && address) { const modalProps = { address, amount }; openModal(MODALS.CONFIRM_TRANSACTION, modalProps); } } render() { const { balance } = this.props; return ( } subtitle={ }}> Send LBRY Credits to your friends or favorite creators. } actions={ (
)} /> } /> ); } } export default WalletSend;