Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Send/SendToken.js
import React, { useState, useEffect } from 'react'; | import React, { useState, useEffect } from 'react'; | ||||
import PropTypes from 'prop-types'; | import PropTypes from 'prop-types'; | ||||
import { WalletContext } from '@utils/context'; | import { WalletContext } from '@utils/context'; | ||||
import { Form, message, Row, Col, Alert, Descriptions } from 'antd'; | import { Form, message, Row, Col, Alert, Descriptions } from 'antd'; | ||||
import TokenIconAlert from '@components/Common/Alerts.js'; | import TokenIconAlert from '@components/Common/Alerts.js'; | ||||
import PrimaryButton, { | import PrimaryButton, { | ||||
SecondaryButton, | SecondaryButton, | ||||
} from '@components/Common/PrimaryButton'; | } from '@components/Common/PrimaryButton'; | ||||
import { | import { | ||||
FormItemWithMaxAddon, | FormItemWithMaxAddon, | ||||
FormItemWithQRCodeAddon, | DestinationAddressSingle, | ||||
} from '@components/Common/EnhancedInputs'; | } from '@components/Common/EnhancedInputs'; | ||||
import useBCH from '@hooks/useBCH'; | import useBCH from '@hooks/useBCH'; | ||||
import BalanceHeader from '@components/Common/BalanceHeader'; | import BalanceHeader from '@components/Common/BalanceHeader'; | ||||
import { Redirect } from 'react-router-dom'; | import { Redirect } from 'react-router-dom'; | ||||
import useWindowDimensions from '@hooks/useWindowDimensions'; | import useWindowDimensions from '@hooks/useWindowDimensions'; | ||||
import { isMobile, isIOS, isSafari } from 'react-device-detect'; | import { isMobile, isIOS, isSafari } from 'react-device-detect'; | ||||
import { Img } from 'react-image'; | import { Img } from 'react-image'; | ||||
import makeBlockie from 'ethereum-blockies-base64'; | import makeBlockie from 'ethereum-blockies-base64'; | ||||
▲ Show 20 Lines • Show All 222 Lines • ▼ Show 20 Lines | return ( | ||||
<TokenIconAlert /> | <TokenIconAlert /> | ||||
<Row type="flex"> | <Row type="flex"> | ||||
<Col span={24}> | <Col span={24}> | ||||
<Form | <Form | ||||
style={{ | style={{ | ||||
width: 'auto', | width: 'auto', | ||||
}} | }} | ||||
> | > | ||||
<FormItemWithQRCodeAddon | <DestinationAddressSingle | ||||
loadWithCameraOpen={scannerSupported} | loadWithCameraOpen={scannerSupported} | ||||
validateStatus={ | validateStatus={ | ||||
sendTokenAddressError ? 'error' : '' | sendTokenAddressError ? 'error' : '' | ||||
} | } | ||||
help={ | help={ | ||||
sendTokenAddressError | sendTokenAddressError | ||||
? sendTokenAddressError | ? sendTokenAddressError | ||||
: '' | : '' | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |