From b3de9779b5a739c7887a6f86fd1796ee53f0937c Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Wed, 27 Feb 2019 18:05:54 +0100 Subject: [PATCH] disable "destination tag" in sendForm --- .../ripple/components/AdvancedForm/index.js | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) 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 7257b3be..873f9b2b 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 }