From 91b6fffd572fca71daa0b356a941294858bc1441 Mon Sep 17 00:00:00 2001 From: Jordan Sexton Date: Tue, 13 Apr 2021 14:33:58 -0500 Subject: [PATCH] simplify parent paths --- packages/common/src/contexts/wallet.tsx | 4 ++-- packages/common/src/wallet-adapters/solong_adapter.tsx | 2 +- packages/lending/src/views/liquidate/index.tsx | 2 +- packages/lending/src/views/reserve/index.tsx | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/common/src/contexts/wallet.tsx b/packages/common/src/contexts/wallet.tsx index c6bf5e56..8e68fa7e 100644 --- a/packages/common/src/contexts/wallet.tsx +++ b/packages/common/src/contexts/wallet.tsx @@ -3,9 +3,9 @@ import { WalletAdapter } from "@solana/wallet-base"; import Wallet from "@project-serum/sol-wallet-adapter"; import { Button, Modal } from "antd"; import React, { useCallback, useContext, useEffect, useMemo, useState} from "react"; -import { notify } from "./../utils/notifications"; +import { notify } from "../utils/notifications"; import { useConnectionConfig } from "./connection"; -import { useLocalStorageState } from "./../utils/utils"; +import { useLocalStorageState } from "../utils/utils"; import { LedgerProvider } from "@solana/wallet-ledger"; import { SolongWalletAdapter } from "../wallet-adapters/solong"; import { PhantomWalletAdapter } from "../wallet-adapters/phantom"; diff --git a/packages/common/src/wallet-adapters/solong_adapter.tsx b/packages/common/src/wallet-adapters/solong_adapter.tsx index 3c3c61ed..aef7dd64 100644 --- a/packages/common/src/wallet-adapters/solong_adapter.tsx +++ b/packages/common/src/wallet-adapters/solong_adapter.tsx @@ -1,6 +1,6 @@ import EventEmitter from "eventemitter3"; import { PublicKey } from "@solana/web3.js"; -import { notify } from "./../utils/notifications"; +import { notify } from "../utils/notifications"; export class SolongAdapter extends EventEmitter { _publicKey: any; diff --git a/packages/lending/src/views/liquidate/index.tsx b/packages/lending/src/views/liquidate/index.tsx index e9da9314..04d03bd6 100644 --- a/packages/lending/src/views/liquidate/index.tsx +++ b/packages/lending/src/views/liquidate/index.tsx @@ -1,7 +1,7 @@ import React, { useMemo } from "react"; import { GUTTER, LABELS } from "../../constants"; import { LiquidateItem } from "./item"; -import { useEnrichedLendingObligations } from "./../../hooks"; +import { useEnrichedLendingObligations } from "../../hooks"; import "./style.less"; import { Card, Col, Row, Statistic, Typography } from "antd"; import { BarChartStatistic } from "../../components/BarChartStatistic"; diff --git a/packages/lending/src/views/reserve/index.tsx b/packages/lending/src/views/reserve/index.tsx index d4294d72..d32ac85c 100644 --- a/packages/lending/src/views/reserve/index.tsx +++ b/packages/lending/src/views/reserve/index.tsx @@ -1,10 +1,10 @@ import React from "react"; -import { useLendingReserve } from "./../../hooks"; +import { useLendingReserve } from "../../hooks"; import { useParams } from "react-router-dom"; import "./style.less"; -import { UserLendingCard } from "./../../components/UserLendingCard"; -import { ReserveStatus } from "./../../components/ReserveStatus"; +import { UserLendingCard } from "../../components/UserLendingCard"; +import { ReserveStatus } from "../../components/ReserveStatus"; import { Col, Row } from "antd"; import { GUTTER } from "../../constants";