diff --git a/src/components/Earn/Tab.tsx b/src/components/Earn/Tab.tsx
index bc4b7f16..1495c47c 100644
--- a/src/components/Earn/Tab.tsx
+++ b/src/components/Earn/Tab.tsx
@@ -8,7 +8,8 @@ const underlineClasses =
'relative before:absolute before:h-[2px] before:-bottom-1 before:left-0 before:right-0 before:gradient-active-tab'
interface Props {
- isFarm?: boolean
+ tabs: Tab[]
+ activeTabIdx: number
}
export default function Tab(props: Props) {
@@ -17,24 +18,18 @@ export default function Tab(props: Props) {
return (
-
+
diff --git a/src/pages/HLSFarmPage.tsx b/src/pages/HLSFarmPage.tsx
new file mode 100644
index 00000000..d386ee30
--- /dev/null
+++ b/src/pages/HLSFarmPage.tsx
@@ -0,0 +1,12 @@
+import Tab from 'components/Earn/Tab'
+import MigrationBanner from 'components/MigrationBanner'
+import { HLS_TABS } from 'constants/pages'
+
+export default function HLSFarmPage() {
+ return (
+
+
+
+
+ )
+}
diff --git a/src/pages/HLSStakingPage.tsx b/src/pages/HLSStakingPage.tsx
new file mode 100644
index 00000000..1fc8e2d2
--- /dev/null
+++ b/src/pages/HLSStakingPage.tsx
@@ -0,0 +1,12 @@
+import Tab from 'components/Earn/Tab'
+import MigrationBanner from 'components/MigrationBanner'
+import { HLS_TABS } from 'constants/pages'
+
+export default function HLSStakingPage() {
+ return (
+
+
+
+
+ )
+}
diff --git a/src/pages/LendPage.tsx b/src/pages/LendPage.tsx
index c27b76e3..0cce99ee 100644
--- a/src/pages/LendPage.tsx
+++ b/src/pages/LendPage.tsx
@@ -1,7 +1,8 @@
-import LendIntro from 'components/Earn/Lend/LendIntro'
import LendingMarketsTable from 'components/Earn/Lend/LendingMarketsTable'
+import LendIntro from 'components/Earn/Lend/LendIntro'
import Tab from 'components/Earn/Tab'
import MigrationBanner from 'components/MigrationBanner'
+import { EARN_TABS } from 'constants/pages'
import useLendingMarketAssetsTableData from 'hooks/useLendingMarketAssetsTableData'
export default function LendPage() {
@@ -9,7 +10,7 @@ export default function LendPage() {
return (
-
+
diff --git a/src/types/interfaces/components/Tab.d.ts b/src/types/interfaces/components/Tab.d.ts
new file mode 100644
index 00000000..aff1c9c5
--- /dev/null
+++ b/src/types/interfaces/components/Tab.d.ts
@@ -0,0 +1,4 @@
+interface Tab {
+ page: Page
+ name: string
+}
diff --git a/src/types/interfaces/route.d.ts b/src/types/interfaces/route.d.ts
index 48101e31..dcd3b9e7 100644
--- a/src/types/interfaces/route.d.ts
+++ b/src/types/interfaces/route.d.ts
@@ -1 +1,9 @@
-type Page = 'trade' | 'borrow' | 'farm' | 'lend' | 'portfolio' | 'portfolio/{accountId}'
+type Page =
+ | 'trade'
+ | 'borrow'
+ | 'farm'
+ | 'lend'
+ | 'portfolio'
+ | 'portfolio/{accountId}'
+ | 'hls-farm'
+ | 'hls-staking'
diff --git a/src/utils/constants.ts b/src/utils/constants.ts
index f4e8a264..55a7b2b4 100644
--- a/src/utils/constants.ts
+++ b/src/utils/constants.ts
@@ -22,3 +22,5 @@ export const DEFAULT_PORTFOLIO_STATS = [
{ title: null, sub: 'APR' },
{ title: null, sub: 'Account Leverage' },
]
+
+export const ENABLE_HLS = false