chore: labels
This commit is contained in:
parent
851ac577c5
commit
c193cf2b4f
|
@ -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.',
|
'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_HOME: "Home",
|
||||||
MENU_DASHBOARD: "Dashboard",
|
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_DEPOSIT: "Deposit",
|
||||||
MENU_BORROW: "Borrow",
|
MENU_BORROW: "Borrow",
|
||||||
MENU_FAUCET: "Faucet",
|
MENU_FAUCET: "Faucet",
|
||||||
|
|
|
@ -7,6 +7,7 @@ import { Button, Card } from "antd";
|
||||||
import { Link } from "react-router-dom";
|
import { Link } from "react-router-dom";
|
||||||
import { TokenAccount } from "../../models";
|
import { TokenAccount } from "../../models";
|
||||||
import { ParsedAccount } from "../../contexts/accounts";
|
import { ParsedAccount } from "../../contexts/accounts";
|
||||||
|
import { LABELS } from "../../constants";
|
||||||
|
|
||||||
export const DepositItem = (props: {
|
export const DepositItem = (props: {
|
||||||
reserve: ParsedAccount<LendingReserve>;
|
reserve: ParsedAccount<LendingReserve>;
|
||||||
|
@ -37,12 +38,12 @@ export const DepositItem = (props: {
|
||||||
<div style={{ display: "flex", justifyContent: "flex-end" }}>
|
<div style={{ display: "flex", justifyContent: "flex-end" }}>
|
||||||
<Link to={`/deposit/${props.reserve.pubkey.toBase58()}`}>
|
<Link to={`/deposit/${props.reserve.pubkey.toBase58()}`}>
|
||||||
<Button>
|
<Button>
|
||||||
<span>Deposit</span>
|
<span>{LABELS.DEPOSIT_ACTION}</span>
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to={`/withdraw/${props.reserve.pubkey.toBase58()}`}>
|
<Link to={`/withdraw/${props.reserve.pubkey.toBase58()}`}>
|
||||||
<Button>
|
<Button>
|
||||||
<span>Withdraw</span>
|
<span>{LABELS.WITHDRAW_ACTION}</span>
|
||||||
</Button>
|
</Button>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,13 +15,13 @@ export const DashboardView = () => {
|
||||||
<div className="dashboard-container">
|
<div className="dashboard-container">
|
||||||
{!connected && (
|
{!connected && (
|
||||||
<div className="dashboard-info">
|
<div className="dashboard-info">
|
||||||
Connect to a wallet to view your deposits/loans.
|
{LABELS.DASHBOARD_INFO}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{connected &&
|
{connected &&
|
||||||
userDeposits.length === 0 &&
|
userDeposits.length === 0 &&
|
||||||
userObligations.length === 0 && (
|
userObligations.length === 0 && (
|
||||||
<div className="dashboard-info">No loans or deposits.</div>
|
<div className="dashboard-info">{LABELS.NO_LOANS_NO_DEPOSITS}</div>
|
||||||
)}
|
)}
|
||||||
{userDeposits.length > 0 && (
|
{userDeposits.length > 0 && (
|
||||||
<div className="dashboard-left">
|
<div className="dashboard-left">
|
||||||
|
|
Loading…
Reference in New Issue