From d30ac691b174f78b7d1b514a5e5eb9ea75ac51f9 Mon Sep 17 00:00:00 2001 From: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com> Date: Tue, 5 Jan 2021 18:08:38 -0600 Subject: [PATCH] chore: more labels --- src/components/ReserveStatus/index.tsx | 8 ++++---- src/components/UserLendingCard/index.tsx | 19 ++++++++++--------- src/constants/labels.ts | 7 +++++++ 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/src/components/ReserveStatus/index.tsx b/src/components/ReserveStatus/index.tsx index 571f3b6..a8e91cc 100644 --- a/src/components/ReserveStatus/index.tsx +++ b/src/components/ReserveStatus/index.tsx @@ -98,7 +98,7 @@ export const ReserveStatus = (props: { } > -

Borrows

+

{LABELS.BORROWS}

@@ -64,14 +65,14 @@ export const UserLendingCard = (props: {
- Health factor: + {LABELS.TABLE_TITLE_HEALTH}:
{health.toFixed(2)}
- Loan to value: + {LABELS.LOAN_TO_VALUE}:
{formatNumber.format(ltv)}
@@ -88,11 +89,11 @@ export const UserLendingCard = (props: {
-

Deposits

+

{LABELS.DEPOSITS}

- Wallet balance: + {LABELS.WALLET_BALANCE}:
@@ -119,16 +120,16 @@ export const UserLendingCard = (props: { style={{ marginTop: 20, justifyContent: "space-evenly" }} > - + - + - + - +
diff --git a/src/constants/labels.ts b/src/constants/labels.ts index 14f2c8c..6ad9e4e 100644 --- a/src/constants/labels.ts +++ b/src/constants/labels.ts @@ -20,6 +20,9 @@ export const LABELS = { DASHBOARD_INFO: "Connect to a wallet to view your deposits/loans.", NO_LOANS_NO_DEPOSITS: "No loans or deposits.", MENU_DEPOSIT: "Deposit", + DEPOSITS: "Deposits", + BORROWS: "Borrows", + LOAN_TO_VALUE: "Loan to value", MENU_BORROW: "Borrow", MENU_LIQUIDATE: "Liquidate", MENU_FAUCET: "Faucet", @@ -27,6 +30,7 @@ export const LABELS = { APP_TITLE: "Oyster Lending", CONNECT_BUTTON: "Connect", WALLET_TOOLTIP: "Wallet public key", + WALLET_BALANCE: "Wallet balance", SETTINGS_TOOLTIP: "Settings", SELECT_COLLATERAL: "Select collateral", COLLATERAL: "Collateral", @@ -48,6 +52,9 @@ export const LABELS = { TABLE_TITLE_TOTAL_BORROWED: "Total Borrowed", TABLE_TITLE_MARKET_SIZE: "Market Size", TABLE_TITLE_ACTION: "Action", + MAX_LTV: "Maximum LTV", + LIQUIDATION_THREASHOLD: "Liquidation threashold", + LIQUIDATION_PENALTY: "Liquidation penalty", TABLE_TITLE_MAX_BORROW: "Available for you", DASHBOARD_TITLE_LOANS: "Loans", DASHBOARD_TITLE_DEPOSITS: "Deposits",