From c193cf2b4ffed4c7253b7ab3f2e26fac49cc471d Mon Sep 17 00:00:00 2001 From: bartosz-lipinski <264380+bartosz-lipinski@users.noreply.github.com> Date: Mon, 30 Nov 2020 08:52:36 -0600 Subject: [PATCH] chore: labels --- src/constants/labels.ts | 2 ++ src/views/dashboard/depositItem.tsx | 5 +++-- src/views/dashboard/index.tsx | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/constants/labels.ts b/src/constants/labels.ts index 1bbde8b..4372ed0 100644 --- a/src/constants/labels.ts +++ b/src/constants/labels.ts @@ -13,6 +13,8 @@ export const LABELS = { 'This page was produced by the Solana Foundation ("SF") for internal educational and inspiration purposes only. SF does not encourage, induce or sanction the deployment, integration or use of Oyster or any similar application (including its code) in violation of applicable laws or regulations and hereby prohibits any such deployment, integration or use. Anyone using this code or a derivation thereof must comply with applicable laws and regulations when releasing related software.', MENU_HOME: "Home", MENU_DASHBOARD: "Dashboard", + DASHBOARD_INFO: "Connect to a wallet to view your deposits/loans.", + NO_LOANS_NO_DEPOSITS: "No loans or deposits.", MENU_DEPOSIT: "Deposit", MENU_BORROW: "Borrow", MENU_FAUCET: "Faucet", diff --git a/src/views/dashboard/depositItem.tsx b/src/views/dashboard/depositItem.tsx index c2bcfd0..2e4039e 100644 --- a/src/views/dashboard/depositItem.tsx +++ b/src/views/dashboard/depositItem.tsx @@ -7,6 +7,7 @@ import { Button, Card } from "antd"; import { Link } from "react-router-dom"; import { TokenAccount } from "../../models"; import { ParsedAccount } from "../../contexts/accounts"; +import { LABELS } from "../../constants"; export const DepositItem = (props: { reserve: ParsedAccount; @@ -37,12 +38,12 @@ export const DepositItem = (props: {
diff --git a/src/views/dashboard/index.tsx b/src/views/dashboard/index.tsx index 82e403d..51fdf14 100644 --- a/src/views/dashboard/index.tsx +++ b/src/views/dashboard/index.tsx @@ -15,13 +15,13 @@ export const DashboardView = () => {
{!connected && (
- Connect to a wallet to view your deposits/loans. + {LABELS.DASHBOARD_INFO}
)} {connected && userDeposits.length === 0 && userObligations.length === 0 && ( -
No loans or deposits.
+
{LABELS.NO_LOANS_NO_DEPOSITS}
)} {userDeposits.length > 0 && (