From 6296ef31bc064c3a55ecafe83d5a6b63db0cd1a6 Mon Sep 17 00:00:00 2001 From: jordansexton Date: Thu, 22 Apr 2021 18:52:27 -0500 Subject: [PATCH] root --- packages/lending/src/App.tsx | 6 +++--- packages/lending/src/index.tsx | 14 +++++++------- packages/lending/src/routes.tsx | 15 ++++++++------- 3 files changed, 18 insertions(+), 17 deletions(-) diff --git a/packages/lending/src/App.tsx b/packages/lending/src/App.tsx index 21da6499..d2220c74 100644 --- a/packages/lending/src/App.tsx +++ b/packages/lending/src/App.tsx @@ -1,6 +1,6 @@ -import React from "react"; -import "./App.less"; -import { Routes } from "./routes"; +import React from 'react'; +import './App.less'; +import { Routes } from './routes'; function App() { return ; diff --git a/packages/lending/src/index.tsx b/packages/lending/src/index.tsx index 63d751b4..a54e5fa5 100644 --- a/packages/lending/src/index.tsx +++ b/packages/lending/src/index.tsx @@ -1,15 +1,15 @@ -import "./wdyr"; +import React from 'react'; +import ReactDOM from 'react-dom'; +import App from './App'; +import './index.css'; +import * as serviceWorker from './serviceWorker'; +import './wdyr'; -import React from "react"; -import ReactDOM from "react-dom"; -import "./index.css"; -import App from "./App"; -import * as serviceWorker from "./serviceWorker"; ReactDOM.render( , - document.getElementById("root") + document.getElementById('root'), ); // If you want your app to work offline and load faster, you can change diff --git a/packages/lending/src/routes.tsx b/packages/lending/src/routes.tsx index 2c379f17..7f6bfc17 100644 --- a/packages/lending/src/routes.tsx +++ b/packages/lending/src/routes.tsx @@ -1,9 +1,9 @@ -import { HashRouter, Route, Switch } from 'react-router-dom'; -import React from 'react'; import { contexts } from '@oyster/common'; -import { MarketProvider } from './contexts/market'; -import { LendingProvider } from './contexts/lending'; +import React from 'react'; +import { HashRouter, Route, Switch } from 'react-router-dom'; import { AppLayout } from './components/Layout'; +import { LendingProvider } from './contexts/lending'; +import { MarketProvider } from './contexts/market'; import { BorrowReserveView, @@ -13,14 +13,15 @@ import { DepositView, FaucetView, HomeView, + LiquidateReserveView, + LiquidateView, + MarginTrading, RepayReserveView, ReserveView, WithdrawView, - LiquidateView, - LiquidateReserveView, - MarginTrading, } from './views'; import { NewPosition } from './views/margin/newPosition'; + const { WalletProvider } = contexts.Wallet; const { ConnectionProvider } = contexts.Connection; const { AccountsProvider } = contexts.Accounts;