Changeset View
Changeset View
Standalone View
Standalone View
web/cashtab/src/components/Send/Send.js
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
const TextAreaLabel = styled.div` | const TextAreaLabel = styled.div` | ||||
text-align: left; | text-align: left; | ||||
color: ${props => props.theme.forms.text}; | color: ${props => props.theme.forms.text}; | ||||
padding-left: 1px; | padding-left: 1px; | ||||
white-space: nowrap; | white-space: nowrap; | ||||
`; | `; | ||||
const AmountPreviewCtn = styled.div` | const AmountPreviewCtn = styled.div` | ||||
margin-top: -30px; | display: flex; | ||||
flex-direction: column; | |||||
justify-content: top; | |||||
max-height: 1rem; | |||||
`; | `; | ||||
const SendInputCtn = styled.div` | const SendInputCtn = styled.div` | ||||
.ant-form-item-with-help { | .ant-form-item-explain-error { | ||||
margin-bottom: 32px; | @media (max-width: 300px) { | ||||
font-size: 12px; | |||||
} | |||||
} | } | ||||
`; | `; | ||||
const LocaleFormattedValue = styled.h3` | const LocaleFormattedValue = styled.h3` | ||||
color: ${props => props.theme.contrast}; | color: ${props => props.theme.contrast}; | ||||
font-weight: bold; | font-weight: bold; | ||||
margin-bottom: 0; | margin-bottom: 0; | ||||
`; | `; | ||||
▲ Show 20 Lines • Show All 792 Lines • ▼ Show 20 Lines | return ( | ||||
{queryStringText && ( | {queryStringText && ( | ||||
<Alert | <Alert | ||||
message={`You are sending a transaction to an address including query parameters "${queryStringText}." Only the "amount" parameter, in units of ${currency.ticker} satoshis, is currently supported.`} | message={`You are sending a transaction to an address including query parameters "${queryStringText}." Only the "amount" parameter, in units of ${currency.ticker} satoshis, is currently supported.`} | ||||
type="warning" | type="warning" | ||||
/> | /> | ||||
)} | )} | ||||
<div | <div | ||||
style={{ | style={{ | ||||
paddingTop: '12px', | paddingTop: '2rem', | ||||
}} | }} | ||||
> | > | ||||
{!balances.totalBalance || | {!balances.totalBalance || | ||||
apiError || | apiError || | ||||
sendBchAmountError || | sendBchAmountError || | ||||
sendBchAddressError || | sendBchAddressError || | ||||
priceApiError ? ( | priceApiError ? ( | ||||
<DisabledButton>Send</DisabledButton> | <DisabledButton>Send</DisabledButton> | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |