Skip to content

Commit

Permalink
infobox changes
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-victor committed Dec 15, 2020
1 parent 0001c6b commit 27d7b80
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 27 deletions.
2 changes: 0 additions & 2 deletions src/app/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -109,7 +108,6 @@ export function Header() {
</Container>
</header>
<WhitelistedNotification />
<LimitsNotification />
</>
);
}
Expand Down
9 changes: 3 additions & 6 deletions src/app/components/InfoBox/index.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -11,16 +12,12 @@ export function InfoBox(props: Props) {
const [show, setShow] = useState<any>(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 (
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 @@ -7,7 +7,7 @@
},
"title": "Sovryn",
"announcement": {
"message": "As Sovryn has only recently launched, there is currently a <0>$21 limit</0> 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",
Expand Down
34 changes: 17 additions & 17 deletions src/locales/es/translation.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Sovryn",
"announcement": {
"message": "Como Sovryn se lanzó recientemente, actualmente hay un <0>límite de $21 </0>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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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."
Expand Down
2 changes: 1 addition & 1 deletion src/locales/pt_br/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
},
"title": "Sovryn",
"announcement": {
"message": "Como a Sovryn foi recém lançada, existe atualmente um limite de <0>$21</0> 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",
Expand Down

1 comment on commit 27d7b80

@vercel
Copy link

@vercel vercel bot commented on 27d7b80 Dec 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.