Skip to content

Commit

Permalink
Organize pages and update their names to what we call them now (#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenshively authored Feb 18, 2024
1 parent 7164846 commit d49b37b
Show file tree
Hide file tree
Showing 49 changed files with 54 additions and 720 deletions.
6 changes: 2 additions & 4 deletions earn/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,10 @@ import AppBody from './components/common/AppBody';
import Header from './components/header/Header';
import { LendingPairsContext } from './data/hooks/UseLendingPairs';
import { getAvailableLendingPairs, LendingPair } from './data/LendingPair';
import AdvancedPage from './pages/AdvancedPage';
import ImportBoostPage from './pages/boost/ImportBoostPage';
import ManageBoostPage from './pages/boost/ManageBoostPage';
import BoostPage from './pages/BoostPage';
import BorrowPage from './pages/BorrowPage';
import ClaimPage from './pages/ClaimPage';
import LeaderboardPage from './pages/LeaderboardPage';
import LendPage from './pages/LendPage';
import MarketsPage from './pages/MarketsPage';
Expand Down Expand Up @@ -130,10 +129,9 @@ function AppBodyWrapper() {
<Route path='/boost' element={<BoostPage />} />
<Route path='/boost/import/:tokenId' element={<ImportBoostPage />} />
<Route path='/boost/manage/:nftTokenId' element={<ManageBoostPage />} />
<Route path='/borrow' element={<BorrowPage />} />
<Route path='/borrow' element={<AdvancedPage />} />
</>
)}
<Route path='/claim' element={<ClaimPage />} />
<Route path='/' element={<Navigate replace to='/markets' />} />
<Route path='*' element={<Navigate to='/' />} />
</Routes>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import { Liabilities } from '../../../data/MarginAccount';
import { MarketInfo } from '../../../data/MarketInfo';
import { RateModel, yieldPerSecondToAPR } from '../../../data/RateModel';
import { UniswapPosition } from '../../../data/Uniswap';
import HealthBar from '../../common/HealthBar';
import TokenAmountSelectInput from '../../portfolio/TokenAmountSelectInput';
import HealthBar from '../HealthBar';

const GAS_ESTIMATE_WIGGLE_ROOM = 110; // 10% wiggle room
const SECONDARY_COLOR = '#CCDFED';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { BorrowerNftBorrower } from '../../../data/BorrowerNft';
import { Assets } from '../../../data/MarginAccount';
import { MarketInfo } from '../../../data/MarketInfo';
import { UniswapPosition } from '../../../data/Uniswap';
import HealthBar from '../../common/HealthBar';
import TokenAmountSelectInput from '../../portfolio/TokenAmountSelectInput';
import HealthBar from '../HealthBar';

const GAS_ESTIMATE_WIGGLE_ROOM = 110; // 10% wiggle room
const SECONDARY_COLOR = '#CCDFED';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import { ChainContext } from '../../../App';
import { isHealthy } from '../../../data/BalanceSheet';
import { Liabilities, MarginAccount } from '../../../data/MarginAccount';
import { UniswapPosition } from '../../../data/Uniswap';
import HealthBar from '../../common/HealthBar';
import TokenAmountSelectInput from '../../portfolio/TokenAmountSelectInput';
import HealthBar from '../HealthBar';

const GAS_ESTIMATE_WIGGLE_ROOM = 110; // 10% wiggle room
const SECONDARY_COLOR = '#CCDFED';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import { ChainContext } from '../../../../App';
import { isHealthy } from '../../../../data/BalanceSheet';
import { Assets, MarginAccount } from '../../../../data/MarginAccount';
import { UniswapPosition } from '../../../../data/Uniswap';
import HealthBar from '../../../common/HealthBar';
import TokenAmountSelectInput from '../../../portfolio/TokenAmountSelectInput';
import HealthBar from '../../HealthBar';

const SECONDARY_COLOR = '#CCDFED';
const TERTIARY_COLOR = '#4b6980';
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion earn/src/components/common/HealthGauge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { GREY_600 } from 'shared/lib/data/constants/Colors';
import { getHealthColor } from 'shared/lib/util/Health';
import styled from 'styled-components';

import HealthBar from '../borrow/HealthBar';
import HealthBar from './HealthBar';

const TooltipParent = styled.div`
display: inline-block;
Expand Down
110 changes: 0 additions & 110 deletions earn/src/components/info/LenderCard.tsx

This file was deleted.

Loading

0 comments on commit d49b37b

Please sign in to comment.