Skip to content

Commit

Permalink
Rename v2dapp path (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall2112 authored Nov 28, 2023
1 parent 130091b commit febdbdd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
10 changes: 5 additions & 5 deletions apps/dapp/src/components/Layouts/V2Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ export type MenuNavItem = {
export type MenuNavItems = Array<MenuNavItem>;

enum V2DashboardLocPaths {
Trade = '/v2dapp/trade',
Trv = '/v2dapp/dashboard/treasuryreservesvault',
Borrow = '/v2dapp/borrow',
Ohmage = '/v2dapp/ohmage',
Legacy = '/v2dapp/legacy',
Trade = '/dapp/trade',
Trv = '/dapp/dashboard/treasuryreservesvault',
Borrow = '/dapp/borrow',
Ohmage = '/dapp/ohmage',
Legacy = '/dapp/legacy',
}

const V2Layout = () => {
Expand Down
4 changes: 2 additions & 2 deletions apps/dapp/src/components/Pages/Core/NewUI/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ const Home = ({ tlc }: { tlc?: boolean }) => {
{/* // TODO: Link */}
<LearnMoreLink>Learn More</LearnMoreLink>
<ButtonContainer>
<Link to="/v2dapp/trade">
<Link to="/dapp/trade">
<LaunchAppButton label={'Launch App'} role="button" />
</Link>
</ButtonContainer>
Expand Down Expand Up @@ -188,7 +188,7 @@ const Home = ({ tlc }: { tlc?: boolean }) => {
</MarketingRow>
))}
<LaunchAppWrapper>
<Link to="/v2dapp/dashboard">
<Link to="/dapp/dashboard">
<LaunchAppButton isUppercase={false} label={'Launch App'} role="button" />
</Link>
</LaunchAppWrapper>
Expand Down
18 changes: 1 addition & 17 deletions apps/dapp/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,10 @@ import NotificationManager from 'components/Notification/NotificationManager';
import PageLayout from 'components/Layouts/Page';
import Loader from 'components/Loader/Loader';
import Disclaimer from 'components/Pages/Disclaimer';
import CoreLayout from 'components/Layouts/CoreLayout';
import VaultPage from 'components/Pages/Core/Vault';
import ProfilePage from 'components/Pages/Core/Profile/Profile';
import VaultListPage from 'components/Pages/Core/VaultList';
import Home from 'components/Pages/Core/NewUI/Home';
import PoolListPage from 'components/Pages/Ascend/PoolList';
import { Claim as VaultClaim } from 'components/Pages/Core/VaultPages/Claim';
import { Stake } from 'components/Pages/Core/VaultPages/Stake';
import { Summary } from 'components/Pages/Core/VaultPages/Summary';
import { Strategy } from 'components/Pages/Core/VaultPages/Strategy';
import Timing from 'components/Pages/Core/VaultPages/Timing';
import { AscendLayout } from 'components/Layouts/Ascend';
import { CreateLBPPage } from 'components/Pages/Ascend/admin/create';
import { EditLBPPage } from 'components/Pages/Ascend/admin/edit';
import { AscendPage } from 'components/Pages/Ascend';
import { AscendListPage } from 'components/Pages/AscendList';

import env from 'constants/env';
import { AnalyticsService } from 'services/AnalyticsService';
import { Unstake } from 'components/Pages/Core/Trade/views/Unstake';
import { DashboardPage } from 'components/Pages/Core/DappPages/Dashboard';
import { TradePage } from './components/Pages/Core/DappPages/TradePage';
import { BorrowPage } from 'components/Pages/Core/DappPages/Borrow';
Expand Down Expand Up @@ -83,7 +67,7 @@ ReactDOM.render(
<Route path="team-payments" element={<LazyPage component={TeamPayments} />} />
<Route path="ramos" element={<LazyPage component={RamosAdmin} />} />
</Route>
<Route path="/v2dapp/*" element={<V2Layout />}>
<Route path="/dapp/*" element={<V2Layout />}>
<Route path="dashboard/*" element={<DashboardPage />} />
<Route path="trade" element={<TradePage />} />
<Route path="borrow" element={<BorrowPage />} />
Expand Down

0 comments on commit febdbdd

Please sign in to comment.