diff --git a/src/components/notifications/Context/components/Static/index.js b/src/components/notifications/Context/components/Static/index.js index 5cb6c9ce..fa148ea1 100644 --- a/src/components/notifications/Context/components/Static/index.js +++ b/src/components/notifications/Context/components/Static/index.js @@ -49,26 +49,6 @@ export default (props: Props) => { } /> ); - } else if (location.state.send) { - notifications.push( - - 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{' '} - does not support destination tags yet. -
-
- If the receiver requires a destination tag, do not use Trezor to send - XRP. We are working on adding this feature. - - } - /> - ); } } diff --git a/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js b/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js index 9051ef3c..eac4ed01 100644 --- a/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js +++ b/src/views/Wallet/views/Account/Send/ripple/components/AdvancedForm/index.js @@ -82,16 +82,16 @@ const getFeeInputState = (feeErrors: string, feeWarnings: string): string => { return state; }; -// const getDestinationTagInputState = (errors: string, warnings: string): string => { -// let state = ''; -// if (warnings && !errors) { -// state = 'warning'; -// } -// if (errors) { -// state = 'error'; -// } -// return state; -// }; +const getDestinationTagInputState = (errors: string, warnings: string): string => { + let state = ''; + if (warnings && !errors) { + state = 'warning'; + } + if (errors) { + state = 'error'; + } + return state; +}; const Left = styled.div` display: flex; @@ -107,11 +107,11 @@ const AdvancedForm = (props: Props) => { warnings, infos, fee, - // destinationTag, + destinationTag, } = props.sendForm; const { onFeeChange, - // onDestinationTagChange, + onDestinationTagChange, } = props.sendFormActions; return ( @@ -150,7 +150,7 @@ const AdvancedForm = (props: Props) => { /> - {/* + { value={destinationTag} onChange={event => onDestinationTagChange(event.target.value)} /> - */} + {props.children}