From 27d7b80f02fd6f2fc4c1794cff167797d602aff2 Mon Sep 17 00:00:00 2001 From: Victor Creed Date: Tue, 15 Dec 2020 16:29:00 +0200 Subject: [PATCH] infobox changes --- src/app/components/Header/index.tsx | 2 -- src/app/components/InfoBox/index.tsx | 9 +++----- src/locales/en/translation.json | 2 +- src/locales/es/translation.json | 34 ++++++++++++++-------------- src/locales/pt_br/translation.json | 2 +- 5 files changed, 22 insertions(+), 27 deletions(-) diff --git a/src/app/components/Header/index.tsx b/src/app/components/Header/index.tsx index 85486e387..772d60d56 100644 --- a/src/app/components/Header/index.tsx +++ b/src/app/components/Header/index.tsx @@ -16,7 +16,6 @@ import { media } from '../../../styles/media'; import { WhitelistedNotification } from '../WhitelistedNotification/Loadable'; import { translations } from 'locales/i18n'; import { actions } from 'app/containers/FastBtcForm/slice'; -import { LimitsNotification } from '../LimitsNotification/Loadable'; export function Header() { const { t } = useTranslation(); @@ -109,7 +108,6 @@ export function Header() { - ); } diff --git a/src/app/components/InfoBox/index.tsx b/src/app/components/InfoBox/index.tsx index 5d19a8b31..98444f95a 100644 --- a/src/app/components/InfoBox/index.tsx +++ b/src/app/components/InfoBox/index.tsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react'; import { Button, Icon } from '@blueprintjs/core'; +import * as storage from 'utils/storage'; interface Props { icon: string; @@ -11,16 +12,12 @@ export function InfoBox(props: Props) { const [show, setShow] = useState(true); useEffect(() => { - setShow( - window.localStorage.getItem(props.localStorageRef) === 'false' - ? false - : true, - ); + setShow(storage.session.getItem(props.localStorageRef) !== 'false'); }, [show, props.localStorageRef]); function closeInfoBox() { setShow(false); - window.localStorage.setItem(props.localStorageRef, 'false'); + storage.session.setItem(props.localStorageRef, 'false'); } return ( diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index bb06a5674..ec3849d5b 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -7,7 +7,7 @@ }, "title": "Sovryn", "announcement": { - "message": "As Sovryn has only recently launched, there is currently a <0>$21 limit on all transactions on the platform. We will be raising this limit to $210 soon. Thank you for being an early adopter!" + "message": "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." }, "homePage": { "title": "Home Page", diff --git a/src/locales/es/translation.json b/src/locales/es/translation.json index 88d890788..97d537a89 100644 --- a/src/locales/es/translation.json +++ b/src/locales/es/translation.json @@ -1,7 +1,7 @@ { "title": "Sovryn", "announcement": { - "message": "Como Sovryn se lanzó recientemente, actualmente hay un <0>límite de $21 en todas las transacciones en la plataforma. Pronto aumentaremos este límite a $ 210. ¡Gracias por ser uno de los primeros en adoptar!" + "message": "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." }, "homePage": { "title": "Página de inicio", @@ -176,7 +176,7 @@ "liquidity": { "title": "Liquidez", "meta": "Agregar liquidez", - "currency":"Moneda", + "currency": "Moneda", "currencySelect": "Seleccione el tipo de moneda", "amount": "Ingrese monto", "amountTarget": "Cantidad objetivo", @@ -226,21 +226,21 @@ "lendArp": "Prestar APR", "borrowArp": "Pedir prestado APR", "chooseDays": "Choose days" - }, - "container": { - "leftBtn": "Deposit", - "rightBtn": "Withdraw", - "amountName": "Cantidad del depósito", - "balance": "Equilibrar", - "profit": "Lucro", - "supply": "Suministro" - }, - "borrowingContainer": { - "amount": "Importe a pedir prestado", - "token": "Token para colaborar", - "collateralAmount": "Importe de garantía", - "borrow": "Pedir prestado" - } + }, + "container": { + "leftBtn": "Deposit", + "rightBtn": "Withdraw", + "amountName": "Cantidad del depósito", + "balance": "Equilibrar", + "profit": "Lucro", + "supply": "Suministro" + }, + "borrowingContainer": { + "amount": "Importe a pedir prestado", + "token": "Token para colaborar", + "collateralAmount": "Importe de garantía", + "borrow": "Pedir prestado" + } }, "activeUserBorrows": { "text": "No tienes préstamos activos." diff --git a/src/locales/pt_br/translation.json b/src/locales/pt_br/translation.json index 71aa3922a..10fbba88f 100644 --- a/src/locales/pt_br/translation.json +++ b/src/locales/pt_br/translation.json @@ -7,7 +7,7 @@ }, "title": "Sovryn", "announcement": { - "message": "Como a Sovryn foi recém lançada, existe atualmente um limite de <0>$21 em todas as transações na plataforma. Em breve vamos aumentar esse limite para $210. Obrigado por ser um dos primeiros a usar!" + "message": "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." }, "homePage": { "title": "Página inicial",