From fd771221f4fa48b75bcedc14ba8d545f82f3ba99 Mon Sep 17 00:00:00 2001 From: shmuel Date: Wed, 19 Jan 2022 00:44:12 +0200 Subject: [PATCH 01/12] vesta-sidebar + logo + netwrok support + iframe --- src/App.js | 2 ++ src/assets/vesta-logo.svg | 72 +++++++++++++++++++++++++++++++++++++++ src/components/Sidebar.js | 10 ++++++ src/containers/Vesta.js | 27 +++++++++++++++ src/stores/user.store.js | 14 +++++++- 5 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 src/assets/vesta-logo.svg create mode 100644 src/containers/Vesta.js diff --git a/src/App.js b/src/App.js index 1e637a8..f3d3047 100644 --- a/src/App.js +++ b/src/App.js @@ -19,6 +19,7 @@ routerStore.setRouteProps(browserHistory) const Dashboard = React.lazy(() => import("./containers/Dashboard")); const Compound = React.lazy(() => import("./containers/Compound")); const Liquity = React.lazy(() => import("./containers/Liquity")); +const Vesta = React.lazy(() => import("./containers/Vesta")); const Risk = React.lazy(() => import("./containers/Risk")); const TermsOfUse = React.lazy(() => import("./containers/Terms")); const FAQ = React.lazy(() => import("./containers/FAQ")); @@ -53,6 +54,7 @@ const App = observer(() => { (renderPage(props, Dashboard))} /> (renderPage(props, Compound))} /> (renderPage(props, Liquity))} /> + (renderPage(props, Vesta))} /> (renderPage(props, FAQ))} /> (renderPage(props, TermsOfUse))} /> (renderPage(props, Risk))} /> diff --git a/src/assets/vesta-logo.svg b/src/assets/vesta-logo.svg new file mode 100644 index 0000000..3c0fd39 --- /dev/null +++ b/src/assets/vesta-logo.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/components/Sidebar.js b/src/components/Sidebar.js index 28a4c88..4b8a686 100644 --- a/src/components/Sidebar.js +++ b/src/components/Sidebar.js @@ -7,6 +7,7 @@ import Discord from "../assets/discord.svg"; import AAVELogo from "../assets/aav-ewhite-logo.svg"; import CompoundLogo from "../assets/compound-logo.svg"; import LiquityLogo from "../assets/liquity-logo.svg"; +import VestaLogo from "../assets/vesta-logo.svg"; import MakerLogo from "../assets/logo-maker-white.svg"; import HundredLogo from "../assets/hundred-logo.svg"; import MigrationModal from "./modals/MigrationModal"; @@ -134,6 +135,15 @@ class Sidebar extends Component { {false && (Testnet)} +
this.handleItemSelect("vesta")}> + + Testnet +
diff --git a/src/containers/Vesta.js b/src/containers/Vesta.js new file mode 100644 index 0000000..6ea4e7c --- /dev/null +++ b/src/containers/Vesta.js @@ -0,0 +1,27 @@ +import React, { Component } from "react"; +import {observer} from "mobx-react" +import routerStore from "../stores/router.store" + +class Vesta extends Component { + + constructor(props) { + super(props); + } + + componentDidMount() { + routerStore.setRouteProps(this.props.history) + } + + render() { + return ( +