feat: Add Liquidate view

This commit is contained in:
Sebastian.Bor 2020-12-05 19:53:11 +00:00
parent c753d150a1
commit cbdccb18f8
5 changed files with 34 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import {
GithubOutlined, GithubOutlined,
BankOutlined, BankOutlined,
LogoutOutlined, LogoutOutlined,
LoginOutlined,
HomeOutlined, HomeOutlined,
RocketOutlined, RocketOutlined,
} from "@ant-design/icons"; } from "@ant-design/icons";
@ -25,7 +26,8 @@ export const AppLayout = (props: any) => {
"/dashboard": "2", "/dashboard": "2",
"/deposit": "3", "/deposit": "3",
"/borrow": "4", "/borrow": "4",
"/faucet": "4", "/liquidate": "5",
"/faucet": "6",
}; };
const current = const current =
@ -92,8 +94,17 @@ export const AppLayout = (props: any) => {
{LABELS.MENU_BORROW} {LABELS.MENU_BORROW}
</Link> </Link>
</Menu.Item> </Menu.Item>
<Menu.Item key="5" icon={<LoginOutlined />}>
<Link
to={{
pathname: "/liquidate",
}}
>
{LABELS.MENU_LIQUIDATE}
</Link>
</Menu.Item>
{env !== "mainnet-beta" && ( {env !== "mainnet-beta" && (
<Menu.Item key="5" icon={<RocketOutlined />}> <Menu.Item key="6" icon={<RocketOutlined />}>
<Link <Link
to={{ to={{
pathname: "/faucet", pathname: "/faucet",

View File

@ -17,6 +17,7 @@ export const LABELS = {
NO_LOANS_NO_DEPOSITS: "No loans or deposits.", NO_LOANS_NO_DEPOSITS: "No loans or deposits.",
MENU_DEPOSIT: "Deposit", MENU_DEPOSIT: "Deposit",
MENU_BORROW: "Borrow", MENU_BORROW: "Borrow",
MENU_LIQUIDATE: "Liquidate",
MENU_FAUCET: "Faucet", MENU_FAUCET: "Faucet",
APP_TITLE: "Oyster Lending", APP_TITLE: "Oyster Lending",
CONNECT_BUTTON: "Connect", CONNECT_BUTTON: "Connect",

View File

@ -18,6 +18,7 @@ import {
RepayReserveView, RepayReserveView,
ReserveView, ReserveView,
WithdrawView, WithdrawView,
LiquidateView,
} from "./views"; } from "./views";
export function Routes() { export function Routes() {
@ -61,6 +62,11 @@ export function Routes() {
path="/repay/:reserve" path="/repay/:reserve"
children={<RepayReserveView />} children={<RepayReserveView />}
/> />
<Route
exact
path="/liquidate"
children={<LiquidateView />}
/>
<Route exact path="/faucet" children={<FaucetView />} /> <Route exact path="/faucet" children={<FaucetView />} />
</Switch> </Switch>
</AppLayout> </AppLayout>

View File

@ -8,3 +8,4 @@ export { ReserveView } from "./reserve";
export { WithdrawView } from "./withdraw"; export { WithdrawView } from "./withdraw";
export { FaucetView } from "./faucet"; export { FaucetView } from "./faucet";
export { RepayReserveView } from "./repayReserve"; export { RepayReserveView } from "./repayReserve";
export { LiquidateView } from "./liquidate";

View File

@ -0,0 +1,13 @@
import React from "react";
export const LiquidateView = () => {
return (
<div>
<div>Liquidation</div>
</div>
);
};