From 4c86b7cce12475561d8114ff3893a69f6d02e1b3 Mon Sep 17 00:00:00 2001 From: default Date: Fri, 30 Jan 2026 04:57:24 +0000 Subject: [PATCH] feat: add Products navigation button to sidebar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- components/Sidebar.tsx | 3 ++- locales/en.json | 1 + locales/zh.json | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index 6639ff0..1fb92f8 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -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" }, diff --git a/locales/en.json b/locales/en.json index 7e99940..544d1d5 100644 --- a/locales/en.json +++ b/locales/en.json @@ -1,6 +1,7 @@ { "nav": { "assets": "Assets", + "products": "Products", "alp": "ALP", "swap": "Swap", "lending": "Lending", diff --git a/locales/zh.json b/locales/zh.json index 66bc6c8..81a1ad3 100644 --- a/locales/zh.json +++ b/locales/zh.json @@ -1,6 +1,7 @@ { "nav": { "assets": "资产", + "products": "产品", "alp": "ALP", "swap": "交换", "lending": "借贷",