1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-16 05:19:12 +00:00

Merge pull request #397 from trezor/fix/ripple-texts

Fix/Ripple texts
This commit is contained in:
Vladimir Volek 2019-02-25 18:28:57 +01:00 committed by GitHub
commit a4d4729a50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 6 deletions

View File

@ -17,7 +17,7 @@ type Props = {
cancelable?: boolean; cancelable?: boolean;
title: string; title: string;
className?: string; className?: string;
message?: ?string; message?: ?React.Node;
actions?: Array<CallbackAction>; actions?: Array<CallbackAction>;
isActionInProgress?: boolean; isActionInProgress?: boolean;
close?: typeof NotificationActions.close, close?: typeof NotificationActions.close,

View File

@ -43,7 +43,7 @@ const Tooltip = ({
<Content maxWidth={maxWidth}>{content}</Content> <Content maxWidth={maxWidth}>{content}</Content>
{readMoreLink && ( {readMoreLink && (
<Link href={readMoreLink}> <Link href={readMoreLink}>
<ReadMore>Read more</ReadMore> <ReadMore>Learn more</ReadMore>
</Link> </Link>
) )
} }

View File

@ -3,7 +3,7 @@
import * as React from 'react'; import * as React from 'react';
import Notification from 'components/Notification'; import Notification from 'components/Notification';
import Bignumber from 'bignumber.js'; import Bignumber from 'bignumber.js';
import Link from 'components/Link';
import type { Props } from '../../index'; import type { Props } from '../../index';
export default (props: Props) => { export default (props: Props) => {
@ -25,7 +25,12 @@ export default (props: Props) => {
key="xrp-warning" key="xrp-warning"
type="warning" type="warning"
title="Minimum account reserve required" title="Minimum account reserve required"
message={`The Base Reserve is a minimum amount of XRP that is required for every address in the ledger. Currently, this is ${bigReserve.toString()} XRP.`} message={(
<>
{`Ripple addresses require a minimum balance of ${bigReserve.toString()} XRP to activate and maintain the account. `}
<Link isGreen href="https://wiki.trezor.io/Ripple_(XRP)">Learn more</Link>
</>
)}
/>, />,
); );
} }

View File

@ -165,11 +165,11 @@ const AdvancedForm = (props: Props) => {
<Tooltip <Tooltip
content={( content={(
<React.Fragment> <React.Fragment>
An arbitrary unsigned 32-bit integer that identifies a reason for payment or a non-Ripple account. Destination tag is an arbitrary number which serves as a unique identifier of your transaction. Some services may require this to process your transaction.
</React.Fragment> </React.Fragment>
)} )}
maxWidth={200} maxWidth={200}
readMoreLink="https://developers.ripple.com/rippleapi-reference.html#payment" readMoreLink="https://wiki.trezor.io/Ripple_(XRP)"
placement="top" placement="top"
> >
<StyledIcon <StyledIcon