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:
@@ -10,7 +10,8 @@ export default function Sidebar() {
|
|||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
|
|
||||||
const navigationItems = [
|
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-alp.svg", label: t("nav.alp"), key: "ALP", path: "/alp" },
|
||||||
{ icon: "/icon-swap.svg", label: t("nav.swap"), key: "Swap", path: "/swap" },
|
{ icon: "/icon-swap.svg", label: t("nav.swap"), key: "Swap", path: "/swap" },
|
||||||
{ icon: "/icon-lending.svg", label: t("nav.lending"), key: "Lending", path: "/lending" },
|
{ icon: "/icon-lending.svg", label: t("nav.lending"), key: "Lending", path: "/lending" },
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"nav": {
|
"nav": {
|
||||||
"assets": "Assets",
|
"assets": "Assets",
|
||||||
|
"products": "Products",
|
||||||
"alp": "ALP",
|
"alp": "ALP",
|
||||||
"swap": "Swap",
|
"swap": "Swap",
|
||||||
"lending": "Lending",
|
"lending": "Lending",
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"nav": {
|
"nav": {
|
||||||
"assets": "资产",
|
"assets": "资产",
|
||||||
|
"products": "产品",
|
||||||
"alp": "ALP",
|
"alp": "ALP",
|
||||||
"swap": "交换",
|
"swap": "交换",
|
||||||
"lending": "借贷",
|
"lending": "借贷",
|
||||||
|
|||||||
Reference in New Issue
Block a user