pull/441/head
Vladimir Volek 5 years ago
parent c738f41ce3
commit 8696c9d6d5

@ -49,26 +49,6 @@ export default (props: Props) => {
} }
/> />
); );
} else if (location.state.send) {
notifications.push(
<Notification
key="xrp-warning"
type="warning"
title="Do not send to accounts requiring a destination tag!"
message={
<>
Destination tag is an arbitrary number which serves as a unique
identifier of your transaction. Some services may require this to
process your transaction. The current firmware version{' '}
<strong>does not support</strong> destination tags yet.
<br />
<br />
If the receiver requires a destination tag, do not use Trezor to send
XRP. We are working on adding this feature.
</>
}
/>
);
} }
} }

@ -82,16 +82,16 @@ const getFeeInputState = (feeErrors: string, feeWarnings: string): string => {
return state; return state;
}; };
// const getDestinationTagInputState = (errors: string, warnings: string): string => { const getDestinationTagInputState = (errors: string, warnings: string): string => {
// let state = ''; let state = '';
// if (warnings && !errors) { if (warnings && !errors) {
// state = 'warning'; state = 'warning';
// } }
// if (errors) { if (errors) {
// state = 'error'; state = 'error';
// } }
// return state; return state;
// }; };
const Left = styled.div` const Left = styled.div`
display: flex; display: flex;
@ -107,11 +107,11 @@ const AdvancedForm = (props: Props) => {
warnings, warnings,
infos, infos,
fee, fee,
// destinationTag, destinationTag,
} = props.sendForm; } = props.sendForm;
const { const {
onFeeChange, onFeeChange,
// onDestinationTagChange, onDestinationTagChange,
} = props.sendFormActions; } = props.sendFormActions;
return ( return (
@ -150,7 +150,7 @@ const AdvancedForm = (props: Props) => {
/> />
</InputRow> </InputRow>
{/* <InputRow> <InputRow>
<StyledInput <StyledInput
state={getDestinationTagInputState(errors.destinationTag, warnings.destinationTag)} state={getDestinationTagInputState(errors.destinationTag, warnings.destinationTag)}
autoComplete="off" autoComplete="off"
@ -180,7 +180,7 @@ const AdvancedForm = (props: Props) => {
value={destinationTag} value={destinationTag}
onChange={event => onDestinationTagChange(event.target.value)} onChange={event => onDestinationTagChange(event.target.value)}
/> />
</InputRow> */} </InputRow>
<AdvancedSettingsSendButtonWrapper>{props.children}</AdvancedSettingsSendButtonWrapper> <AdvancedSettingsSendButtonWrapper>{props.children}</AdvancedSettingsSendButtonWrapper>
</AdvancedSettingsWrapper> </AdvancedSettingsWrapper>

Loading…
Cancel
Save