mirror of
https://github.com/trezor/trezor-wallet
synced 2025-06-27 10:22:35 +00:00
disable "destination tag" in sendForm
This commit is contained in:
parent
411b3f623d
commit
b3de9779b5
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user