diff --git a/src/components/notifications/Context/components/Static/index.js b/src/components/notifications/Context/components/Static/index.js index c225a19e..a6867a0e 100644 --- a/src/components/notifications/Context/components/Static/index.js +++ b/src/components/notifications/Context/components/Static/index.js @@ -33,21 +33,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 873f9b2b..7257b3be 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 @@ -79,16 +79,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; @@ -106,11 +106,11 @@ const AdvancedForm = (props: Props) => { warnings, infos, fee, - // destinationTag, + destinationTag, } = props.sendForm; const { onFeeChange, - // onDestinationTagChange, + onDestinationTagChange, } = props.sendFormActions; return ( @@ -151,7 +151,7 @@ const AdvancedForm = (props: Props) => { /> - {/* + { value={destinationTag} onChange={event => onDestinationTagChange(event.target.value)} /> - */} + { props.children }