Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/little-suns-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@venusprotocol/evm": minor
---

add Venus Flux entry to navbar
36 changes: 18 additions & 18 deletions apps/evm/src/containers/Layout/NavBar/useMenuItems/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { useIsFeatureEnabled } from 'hooks/useIsFeatureEnabled';
import { useAccountAddress } from 'libs/wallet';

import { useGetPools } from 'clients/api';
// import { VENUS_FLUX_URL } from 'constants/production';
import { VENUS_FLUX_URL } from 'constants/production';
import { useGetMarketsPagePath } from 'hooks/useGetMarketsPagePath';
import { useTranslation } from 'libs/translations';
import type { MenuItem, SubMenu } from '../types';
// import venusCoreIconSrc from './venusCoreIcon.png';
// import venusFluxIconSrc from './venusFluxIcon.png';
import venusCoreIconSrc from './venusCoreIcon.png';
import venusFluxIconSrc from './venusFluxIcon.png';

export const useMenuItems = () => {
const { t } = useTranslation();
Expand All @@ -33,21 +33,21 @@ export const useMenuItems = () => {
{
label: t('layout.menu.markets.label'),
to: marketsPagePath,
// variant: 'secondary',
// items: [
// {
// to: marketsPagePath,
// imgSrc: venusCoreIconSrc,
// label: t('layouts.menu.markets.venusCore.label'),
// description: t('layouts.menu.markets.venusCore.description'),
// },
// {
// href: VENUS_FLUX_URL,
// imgSrc: venusFluxIconSrc,
// label: t('layouts.menu.markets.venusFlux.label'),
// description: t('layouts.menu.markets.venusFlux.description'),
// },
// ],
variant: 'secondary',
items: [
{
to: marketsPagePath,
imgSrc: venusCoreIconSrc,
label: t('layouts.menu.markets.venusCore.label'),
description: t('layouts.menu.markets.venusCore.description'),
},
{
href: VENUS_FLUX_URL,
imgSrc: venusFluxIconSrc,
label: t('layouts.menu.markets.venusFlux.label'),
description: t('layouts.menu.markets.venusFlux.description'),
},
],
},
{
to: routes.staking.path,
Expand Down
14 changes: 14 additions & 0 deletions apps/evm/src/libs/translations/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,20 @@
},
"testEnvWarning": "This is a test environment. Do not interact with it for any purpose other than testing. <Link>Go to the official Venus Protocol website</Link>"
},
"layouts": {
"menu": {
"markets": {
"venusCore": {
"description": "Classic lending and borrowing with easy, optimized leverage.",
"label": "Venus Core"
},
"venusFlux": {
"description": "Capital-efficient lending and borrowing for optimal yield.",
"label": "Venus Flux"
}
}
}
},
"legal": {
"lastUpdatedAt": "Last updated: {{ date, textual }}"
},
Expand Down
14 changes: 14 additions & 0 deletions apps/evm/src/libs/translations/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,20 @@
},
"testEnvWarning": "これはテスト環境です。テスト目的以外では操作しないでください。<Link>Venus Protocol公式サイトへ</Link>"
},
"layouts": {
"menu": {
"markets": {
"venusCore": {
"description": "最適化されたレバレッジを簡単に利用できるクラシックな貸借。",
"label": "Venus Core"
},
"venusFlux": {
"description": "最適な利回りのための資本効率の高い貸借。",
"label": "Venus Flux"
}
}
}
},
"legal": {
"lastUpdatedAt": "最終更新: {{ date, textual }}"
},
Expand Down
14 changes: 14 additions & 0 deletions apps/evm/src/libs/translations/translations/th.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,20 @@
},
"testEnvWarning": "นี่คือสภาพแวดล้อมทดสอบ ห้ามโต้ตอบเพื่อวัตถุประสงค์อื่นนอกเหนือจากการทดสอบ <Link>ไปยังเว็บไซต์ Venus Protocol อย่างเป็นทางการ</Link>"
},
"layouts": {
"menu": {
"markets": {
"venusCore": {
"description": "การให้ยืมและการยืมแบบคลาสสิก พร้อมเลเวอเรจที่ใช้งานง่ายและปรับให้เหมาะสม",
"label": "Venus Core"
},
"venusFlux": {
"description": "การให้ยืมและการยืมที่ใช้ทุนอย่างมีประสิทธิภาพเพื่อผลตอบแทนที่ดีที่สุด",
"label": "Venus Flux"
}
}
}
},
"legal": {
"lastUpdatedAt": "อัปเดตล่าสุด: {{ date, textual }}"
},
Expand Down
14 changes: 14 additions & 0 deletions apps/evm/src/libs/translations/translations/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,20 @@
},
"testEnvWarning": "Bu bir test ortamıdır. Test dışında herhangi bir amaçla etkileşime girmeyin. <Link>Resmi Venus Protocol web sitesine gidin</Link>"
},
"layouts": {
"menu": {
"markets": {
"venusCore": {
"description": "Kolay ve optimize edilmiş kaldıraçla klasik borç verme ve borç alma.",
"label": "Venus Core"
},
"venusFlux": {
"description": "En iyi getiri için sermaye verimli borç verme ve borç alma.",
"label": "Venus Flux"
}
}
}
},
"legal": {
"lastUpdatedAt": "Son güncelleme: {{ date, textual }}"
},
Expand Down
14 changes: 14 additions & 0 deletions apps/evm/src/libs/translations/translations/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,20 @@
},
"testEnvWarning": "Đây là môi trường thử nghiệm. Không tương tác vì bất kỳ mục đích nào khác ngoài thử nghiệm. <Link>Truy cập trang web chính thức của Venus Protocol</Link>"
},
"layouts": {
"menu": {
"markets": {
"venusCore": {
"description": "Cho vay và vay theo cách truyền thống với đòn bẩy dễ dùng, tối ưu.",
"label": "Venus Core"
},
"venusFlux": {
"description": "Cho vay và vay hiệu quả về vốn để tối ưu lợi suất.",
"label": "Venus Flux"
}
}
}
},
"legal": {
"lastUpdatedAt": "Cập nhật lần cuối: {{ date, textual }}"
},
Expand Down
14 changes: 14 additions & 0 deletions apps/evm/src/libs/translations/translations/zh-Hans.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,20 @@
},
"testEnvWarning": "这是测试环境。除测试外请勿进行任何交互。<Link>前往 Venus Protocol 官方网站</Link>"
},
"layouts": {
"menu": {
"markets": {
"venusCore": {
"description": "经典借贷,轻松使用优化杠杆。",
"label": "Venus Core"
},
"venusFlux": {
"description": "高资本效率的借贷,以获得最佳收益。",
"label": "Venus Flux"
}
}
}
},
"legal": {
"lastUpdatedAt": "最后更新:{{ date, textual }}"
},
Expand Down
14 changes: 14 additions & 0 deletions apps/evm/src/libs/translations/translations/zh-Hant.json
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,20 @@
},
"testEnvWarning": "這是測試環境。除測試外請勿進行任何交互。<Link>前往 Venus Protocol 官方網站</Link>"
},
"layouts": {
"menu": {
"markets": {
"venusCore": {
"description": "經典借貸,輕鬆使用最佳化槓桿。",
"label": "Venus Core"
},
"venusFlux": {
"description": "高資本效率的借貸,追求最佳收益。",
"label": "Venus Flux"
}
}
}
},
"legal": {
"lastUpdatedAt": "最後更新:{{ date, textual }}"
},
Expand Down