1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-23 14:31:07 +00:00

Turn on ripple destination tag and remove notification

This commit is contained in:
Vladimir Volek 2019-03-04 17:25:40 +01:00
parent 77e4f349e7
commit e5d90efe21
2 changed files with 14 additions and 29 deletions

View File

@ -33,21 +33,6 @@ export default (props: Props) => {
)} )}
/>, />,
); );
} else if (location.state.send) {
notifications.push(
<Notification
key="xrp-warning"
type="warning"
title="Do not send to accounts requiring a destination tag!"
message={(
<>
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 <strong>does not support</strong> destination tags yet.
<br /><br />
If the receiver requires a destination tag, do not use Trezor to send XRP. We are working on adding this feature.
</>
)}
/>,
);
} }
} }

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 }