diff --git a/web/src/pages/Home/index.jsx b/web/src/pages/Home/index.jsx index 208bc2c..a577250 100644 --- a/web/src/pages/Home/index.jsx +++ b/web/src/pages/Home/index.jsx @@ -20,7 +20,7 @@ For commercial licensing, please contact support@quantumnous.com import React, { useState, useEffect, useCallback, useRef } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { Copy, Check, Code, Terminal, FileCode, Box, Grid3X3, Play, Trophy, PieChart, BookOpen, Search, Sun, Moon, Monitor, Languages } from 'lucide-react'; +import { Copy, Check, Code, Terminal, FileCode, Box, Grid3X3, Play, Trophy, PieChart, Search, Sun, Moon, Monitor, Languages } from 'lucide-react'; /* ================================================================== @@ -162,15 +162,10 @@ function HeroSection() { {[ { key: "model", label: "模型", icon: , to: "/pricing" }, { key: "benchmark", label: "评测", icon: , to: "/benchmarks" }, - { key: "docs", label: "文档", icon: , to: "/docs", isDocs: true }, { key: "console", label: "控制台", icon: , to: "/console" }, - ].map((item) => { - const linkClass = "inline-flex items-center gap-1.5 px-3 py-1.5 text-[14px] rounded-md transition-colors duration-150 text-white/60 hover:text-white"; - if (item.isDocs) { - return {item.icon}{t(item.label)}; - } - return {item.icon}{t(item.label)}; - })} + ].map((item) => ( + {item.icon}{t(item.label)} + ))}