1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-06-27 02:12:36 +00:00

disable "destination tag" in sendForm

This commit is contained in:
Szymon Lesisz 2019-02-27 18:05:54 +01:00
parent 411b3f623d
commit b3de9779b5

View File

@ -79,16 +79,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;
@ -106,11 +106,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 (
@ -151,7 +151,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"
@ -185,7 +185,7 @@ const AdvancedForm = (props: Props) => {
value={destinationTag} value={destinationTag}
onChange={event => onDestinationTagChange(event.target.value)} onChange={event => onDestinationTagChange(event.target.value)}
/> />
</InputRow> </InputRow> */}
<AdvancedSettingsSendButtonWrapper> <AdvancedSettingsSendButtonWrapper>
{ props.children } { props.children }