Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New copy for whitelist notification #556

Merged
merged 1 commit into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions src/app/components/WhitelistedNotification/index.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import React from 'react';
import { Icon } from '@blueprintjs/core/lib/esm/components/icon/icon';
import { useTranslation } from 'react-i18next';
import { Trans } from 'react-i18next';
import { translations } from 'locales/i18n';
import { useIsWhitelisted } from '../../hooks/whitelist/useIsWhitelisted';

export function WhitelistedNotification() {
const isWhitelisted = useIsWhitelisted();
const { t } = useTranslation();

if (isWhitelisted) return <></>;

Expand All @@ -16,7 +15,21 @@ export function WhitelistedNotification() {
<div className="ml-3 mr-4">
<Icon icon="warning-sign" iconSize={26} />
</div>
<div>{t(translations.whiteListedNotification.text)}</div>
<div>
<Trans
i18nKey={translations.whiteListedNotification.text}
components={[
<a
href="https://wiki.sovryn.app/"
className="font-weight-light text-gold"
target="_blank"
rel="noreferrer noopener"
>
x
</a>,
]}
/>
</div>
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
"updated_success_user": "Your details have been updated."
},
"whiteListedNotification": {
"text": "Currently Sovryn is available for invited users only and your wallet is not yet whitelisted. All interactions is disabled until you switch to whitelisted wallet or get whitelisted for current one."
"text": "Your wallet is not authorised to use the Sovryn Dapp. All interactions are disabled until you switch to an authorised wallet or authorise this wallet. Wallets are automatically authorised if they contain SOV (including vested or staked SOV). Documentation about the Sovryn dapp is available at the <0>wiki</0>."
},
"limitsNotification": {
"text": "Sovryn has just lifted transaction limits (hooray!). This means you can now take any position size. Please be aware, however, since the limits were only just removed, liquidity in the system may be low initially."
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"updated_success_user": "Your details have been updated."
},
"whiteListedNotification": {
"text": "Actualmente Sovryn esta disponible solo para usuarios invitados y tu cartera no está en la lista de invitados. Todo intercambio estará deshabilitado hasta que conmutes a una cartera invitada o tu cartera actual reciba un token de invitación."
"text": "Your wallet is not authorised to use the Sovryn Dapp. All interactions are disabled until you switch to an authorised wallet or authorise this wallet. Wallets are automatically authorised if they contain SOV (including vested or staked SOV). Documentation about the Sovryn dapp is available at the <0>wiki</0>."
},
"lend": {
"history": {
Expand Down
4 changes: 2 additions & 2 deletions src/locales/pt_br/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"buttons": {
"submit": "Realizar troca",
"switchAssets": "Alternar ativos"
},
},
"arbitrage": {
"best_rate": "Oportunidade de lucro rápido trocando até ",
"for": "por até",
Expand Down Expand Up @@ -277,7 +277,7 @@
"updated_success_user": "Seus dados foram atualizados."
},
"whiteListedNotification": {
"text": "Atualmente a Sovryn está disponível apenas para usuários convidados e sua carteira ainda não está liberada. Todas as interações na Sovryn estão desativadas até que o endereço da sua carteira esteja liberado."
"text": "Your wallet is not authorised to use the Sovryn Dapp. All interactions are disabled until you switch to an authorised wallet or authorise this wallet. Wallets are automatically authorised if they contain SOV (including vested or staked SOV). Documentation about the Sovryn dapp is available at the <0>wiki</0>."
},
"limitsNotification": {
"text": "A Sovryn acaba de aumentar os limites de transação (oba!). Isso significa que agora você pode operar com qualquer valor. Esteja ciente, no entanto, como os limites acabaram de ser removidos, a liquidez do sistema pode estar atualmente baixa."
Expand Down