diff --git a/src/components/Tab.tsx b/src/components/Tab.tsx
new file mode 100644
index 00000000..e69de29b
diff --git a/src/components/pages/borrow.tsx b/src/components/pages/borrow.tsx
index b4c5b531..e7102898 100644
--- a/src/components/pages/borrow.tsx
+++ b/src/components/pages/borrow.tsx
@@ -5,7 +5,7 @@ interface Props {
params: PageParams
}
-export default function BorrowPage(props: Props) {
+export default function Borrowpage(props: Props) {
return (
diff --git a/src/components/pages/council.tsx b/src/components/pages/council.tsx
index 551c85c9..94624d2c 100644
--- a/src/components/pages/council.tsx
+++ b/src/components/pages/council.tsx
@@ -4,6 +4,6 @@ interface Props {
params: PageParams
}
-export default function CouncilPage(props: Props) {
+export default function Councilpage(props: Props) {
return
}
diff --git a/src/components/pages/earn.tsx b/src/components/pages/earn.tsx
deleted file mode 100644
index 101e50f8..00000000
--- a/src/components/pages/earn.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import Overview from 'components/Earn/Overview'
-
-interface Props {
- params: PageParams
-}
-
-export default function EarnPage(props: Props) {
- return
-}
diff --git a/src/components/pages/farm.tsx b/src/components/pages/farm.tsx
new file mode 100644
index 00000000..e2818a12
--- /dev/null
+++ b/src/components/pages/farm.tsx
@@ -0,0 +1,13 @@
+import Card from 'components/Card'
+import Tab from 'components/Earn/Tab'
+
+export default function Farmpage({ params }: { params: PageParams }) {
+ return (
+ <>
+
+
+ <>>
+
+ >
+ )
+}
diff --git a/src/components/pages/lend.tsx b/src/components/pages/lend.tsx
new file mode 100644
index 00000000..6c8f40c7
--- /dev/null
+++ b/src/components/pages/lend.tsx
@@ -0,0 +1,13 @@
+import Card from 'components/Card'
+import Tab from 'components/Earn/Tab'
+
+export default function Lendpage({ params }: { params: PageParams }) {
+ return (
+ <>
+
+
+ <>>
+
+ >
+ )
+}
diff --git a/src/components/pages/portfolio.tsx b/src/components/pages/portfolio.tsx
index 0d9e5c18..d1135b69 100644
--- a/src/components/pages/portfolio.tsx
+++ b/src/components/pages/portfolio.tsx
@@ -4,6 +4,6 @@ interface Props {
params: PageParams
}
-export default function PortfolioPage(props: Props) {
+export default function Portfoliopage(props: Props) {
return
}
diff --git a/src/components/pages/trade.tsx b/src/components/pages/trade.tsx
index b7090d9e..052a5a58 100644
--- a/src/components/pages/trade.tsx
+++ b/src/components/pages/trade.tsx
@@ -6,7 +6,7 @@ interface Props {
params: PageParams
}
-export default function TradePage(props: Props) {
+export default function Tradepage(props: Props) {
return (
diff --git a/src/types/interfaces/route.d.ts b/src/types/interfaces/route.d.ts
index ac7ef883..d3ef13e4 100644
--- a/src/types/interfaces/route.d.ts
+++ b/src/types/interfaces/route.d.ts
@@ -1 +1 @@
-type RouteSegment = 'trade' | 'borrow' | 'earn' | 'portfolio' | 'council'
+type RouteSegment = 'trade' | 'borrow' | 'earn/farm' | 'earn/lend' | 'portfolio' | 'council'
diff --git a/src/utils/route.ts b/src/utils/route.ts
index 14b1f2bc..db36660b 100644
--- a/src/utils/route.ts
+++ b/src/utils/route.ts
@@ -30,7 +30,13 @@ export function getParamsFromUrl(url: string) {
params.accountId = segments[index + 1]
break
default:
- if ([3, 5, 7].includes(index)) params.page = segment
+ if ([3, 5, 7].includes(index)) {
+ if (segment === 'earn') {
+ params.page = `${segment}/${segments[index + 1]}`
+ break
+ }
+ params.page = segment
+ }
}
})
diff --git a/tailwind.config.js b/tailwind.config.js
index 91d0d71d..8e0907b6 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -277,6 +277,10 @@ module.exports = {
background:
'linear-gradient(77.47deg, rgba(20, 24, 57, 0.9) 11.58%, rgba(34, 16, 57, 0.9) 93.89%)',
},
+ '.gradient-active-tab': {
+ background:
+ 'linear-gradient(270deg, rgba(186, 8, 189, 0.764896) 0%, rgba(255, 160, 187, 0.88641) 23.77%, rgba(48, 29, 24, 0.26) 99.2%)',
+ },
'.number': {
whiteSpace: 'nowrap',
fontFeatureSettings: '"tnum" on',