fix(withdraws): link to the withdrawal limits (#3914)

This commit is contained in:
Art 2023-05-23 18:39:29 +02:00 committed by GitHub
parent babd99088d
commit 589785ce09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View File

@ -71,6 +71,7 @@ export const DocsLinks = VEGA_DOCS_URL
LOSS_SOCIALIZATION: `${VEGA_DOCS_URL}/concepts/trading-on-vega/market-protections#loss-socialisation`, LOSS_SOCIALIZATION: `${VEGA_DOCS_URL}/concepts/trading-on-vega/market-protections#loss-socialisation`,
POSITION_RESOLUTION: `${VEGA_DOCS_URL}/concepts/trading-on-vega/market-protections#position-resolution`, POSITION_RESOLUTION: `${VEGA_DOCS_URL}/concepts/trading-on-vega/market-protections#position-resolution`,
LIQUIDITY: `${VEGA_DOCS_URL}/concepts/liquidity/provision`, LIQUIDITY: `${VEGA_DOCS_URL}/concepts/liquidity/provision`,
WITHDRAWAL_LIMITS: `${VEGA_DOCS_URL}/concepts/assets/deposits-withdrawals#withdrawal-limits`,
} }
: undefined; : undefined;

View File

@ -34,6 +34,7 @@ import {
useWeb3Disconnect, useWeb3Disconnect,
} from '@vegaprotocol/web3'; } from '@vegaprotocol/web3';
import { AssetBalance } from './asset-balance'; import { AssetBalance } from './asset-balance';
import { DocsLinks } from '@vegaprotocol/environment';
interface FormFields { interface FormFields {
asset: string; asset: string;
@ -83,12 +84,13 @@ const WithdrawDelayNotification = ({
formatNumber(threshold, decimals), formatNumber(threshold, decimals),
...replacements, ...replacements,
]), ]),
<ExternalLink DocsLinks?.WITHDRAWAL_LIMITS ? (
className="ml-1" <ExternalLink className="ml-1" href={DocsLinks.WITHDRAWAL_LIMITS}>
href="https://docs.vega.xyz/testnet/concepts/deposits-withdrawals#withdrawal-limits"
>
{t('Read more')} {t('Read more')}
</ExternalLink>, </ExternalLink>
) : (
''
),
]} ]}
/> />
); );