From 4af7e63c5f29ef7d93bb7249b33358f6fa5da278 Mon Sep 17 00:00:00 2001
From: Bob van der Helm <34470358+bobthebuidlr@users.noreply.github.com>
Date: Sun, 16 Apr 2023 10:32:14 +0200
Subject: [PATCH] Mp 2538 tab component (#157)
* add basic endpoint for vaultConfigs
* implement apy for vaults
* add tab + update routing
* fixed routing issues
* change structure tab component
---
src/app/earn/farm/page.tsx | 5 +++
src/app/earn/lend/page.tsx | 5 +++
src/app/earn/page.tsx | 5 ---
.../accounts/[accountId]/earn/farm/page.tsx | 5 +++
.../accounts/[accountId]/earn/lend/page.tsx | 5 +++
.../accounts/[accountId]/earn/page.tsx | 5 ---
src/app/wallets/[address]/earn/farm/page.tsx | 5 +++
src/app/wallets/[address]/earn/lend/page.tsx | 5 +++
src/app/wallets/[address]/earn/page.tsx | 5 ---
src/components/Earn/Tab.tsx | 41 +++++++++++++++++++
src/components/Header/DesktopHeader.tsx | 2 +-
.../Navigation/DesktopNavigation.tsx | 7 +++-
src/components/Tab.tsx | 0
src/components/pages/borrow.tsx | 2 +-
src/components/pages/council.tsx | 2 +-
src/components/pages/earn.tsx | 9 ----
src/components/pages/farm.tsx | 13 ++++++
src/components/pages/lend.tsx | 13 ++++++
src/components/pages/portfolio.tsx | 2 +-
src/components/pages/trade.tsx | 2 +-
src/types/interfaces/route.d.ts | 2 +-
src/utils/route.ts | 8 +++-
tailwind.config.js | 4 ++
23 files changed, 120 insertions(+), 32 deletions(-)
create mode 100644 src/app/earn/farm/page.tsx
create mode 100644 src/app/earn/lend/page.tsx
delete mode 100644 src/app/earn/page.tsx
create mode 100644 src/app/wallets/[address]/accounts/[accountId]/earn/farm/page.tsx
create mode 100644 src/app/wallets/[address]/accounts/[accountId]/earn/lend/page.tsx
delete mode 100644 src/app/wallets/[address]/accounts/[accountId]/earn/page.tsx
create mode 100644 src/app/wallets/[address]/earn/farm/page.tsx
create mode 100644 src/app/wallets/[address]/earn/lend/page.tsx
delete mode 100644 src/app/wallets/[address]/earn/page.tsx
create mode 100644 src/components/Earn/Tab.tsx
create mode 100644 src/components/Tab.tsx
delete mode 100644 src/components/pages/earn.tsx
create mode 100644 src/components/pages/farm.tsx
create mode 100644 src/components/pages/lend.tsx
diff --git a/src/app/earn/farm/page.tsx b/src/app/earn/farm/page.tsx
new file mode 100644
index 00000000..2928f19a
--- /dev/null
+++ b/src/app/earn/farm/page.tsx
@@ -0,0 +1,5 @@
+import FarmPage from 'components/pages/farm'
+
+export default async function page({ params }: { params: PageParams }) {
+ return