feat: add Products navigation button to sidebar

- Added new "Products" navigation item in sidebar
- Links to /product page (product listing)
- "Assets" button now links to / (product detail page)
- Added i18n support for "products" label (EN: Products, ZH: 产品)

Navigation structure:
- Assets → / (Product detail page)
- Products → /product (Product listing page)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 04:57:24 +00:00
parent 2d3b83fbaf
commit 4c86b7cce1
3 changed files with 4 additions and 1 deletions

View File

@@ -10,7 +10,8 @@ export default function Sidebar() {
const pathname = usePathname();
const navigationItems = [
{ icon: "/icon-assets.svg", label: t("nav.assets"), key: "Assets", path: "/product" },
{ icon: "/icon-assets.svg", label: t("nav.assets"), key: "Assets", path: "/" },
{ icon: "/icon-lending.svg", label: t("nav.products"), key: "Products", path: "/product" },
{ icon: "/icon-alp.svg", label: t("nav.alp"), key: "ALP", path: "/alp" },
{ icon: "/icon-swap.svg", label: t("nav.swap"), key: "Swap", path: "/swap" },
{ icon: "/icon-lending.svg", label: t("nav.lending"), key: "Lending", path: "/lending" },

View File

@@ -1,6 +1,7 @@
{
"nav": {
"assets": "Assets",
"products": "Products",
"alp": "ALP",
"swap": "Swap",
"lending": "Lending",

View File

@@ -1,6 +1,7 @@
{
"nav": {
"assets": "资产",
"products": "产品",
"alp": "ALP",
"swap": "交换",
"lending": "借贷",