Merge branch 'release/1.1.0-beta' of https://github.com/trezor/trezor-wallet into release/1.1.0-beta

pull/412/head
slowbackspace 5 years ago
commit 67ed1b5b24

@ -33,6 +33,21 @@ 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.
</>
)}
/>,
);
}
}

@ -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) => {
/>
</InputRow>
<InputRow>
{/* <InputRow>
<StyledInput
state={getDestinationTagInputState(errors.destinationTag, warnings.destinationTag)}
autoComplete="off"
@ -185,7 +185,7 @@ const AdvancedForm = (props: Props) => {
value={destinationTag}
onChange={event => onDestinationTagChange(event.target.value)}
/>
</InputRow>
</InputRow> */}
<AdvancedSettingsSendButtonWrapper>
{ props.children }

Loading…
Cancel
Save