Skip to content

Commit

Permalink
Added redirect link for Yield Farming
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-01k committed Sep 27, 2024
1 parent 4d07424 commit a866950
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/config/AppPaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enum APP_PATHS {
Govern = '/govern',
Snap = '/snap',
YieldV2 = '/yieldv2',
Yield = '/yield',
Rockstar = '/rockstar',
Gratitude = '/gratitude',
LiveWalkthrough = '/live_walkthrough',
Expand All @@ -30,7 +31,7 @@ enum APP_PATHS {
Support = '/support',
UserSettings = '/user/settings',
ChannelSettings = '/channel/settings',
ClaimGalxe = 'claim/galxe'
ClaimGalxe = 'claim/galxe',
}

export default APP_PATHS;
2 changes: 1 addition & 1 deletion src/config/NavigationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const NavigationList = {
name: 'Yield Farming V2',
title: 'Yield Farming V2',
alt: 'Open Yield Farming V2',
href: APP_PATHS.YieldV2,
href: APP_PATHS.Yield,
newTab: false,
isRoute: true,
hasMenuLogic: true,
Expand Down
5 changes: 4 additions & 1 deletion src/structure/MasterInterfacePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,9 +280,12 @@ function MasterInterfacePage() {
element={<SnapPage />}
/>

{/* <Route path="yield" element={<YieldFarmingPage />} /> */}
<Route
path={APP_PATHS.YieldV2}
element={<Navigate to={APP_PATHS.Yield} replace />}
/>
<Route
path={APP_PATHS.Yield}
element={<YieldFarmingV2Page />}
/>
<Route
Expand Down

0 comments on commit a866950

Please sign in to comment.