diff --git a/public-frontend/src/App.tsx b/public-frontend/src/App.tsx index 18d09ea..6cd4794 100644 --- a/public-frontend/src/App.tsx +++ b/public-frontend/src/App.tsx @@ -1,10 +1,11 @@ import { useEffect, useState } from "react"; -import { Boxes, Search, PlusCircle, Code2, KeyRound } from "lucide-react"; +import { Boxes, Search, PlusCircle, Code2, KeyRound, Headset } from "lucide-react"; import Home from "./components/Home"; import ProductView from "./components/ProductView"; import Contribute from "./components/Contribute"; import ApiDocs from "./components/ApiDocs"; import Account from "./components/Account"; +import Contact from "./components/Contact"; import { api } from "./api"; type View = @@ -12,13 +13,15 @@ type View = | { name: "product"; id: string } | { name: "contribute" } | { name: "api" } - | { name: "account" }; + | { name: "account" } + | { name: "contact" }; const NAV: { key: View["name"]; label: string; icon: typeof Search }[] = [ { key: "home", label: "检索", icon: Search }, { key: "contribute", label: "贡献档案", icon: PlusCircle }, { key: "api", label: "API", icon: Code2 }, { key: "account", label: "API 密钥", icon: KeyRound }, + { key: "contact", label: "联系我们", icon: Headset }, ]; export default function App() { @@ -88,6 +91,7 @@ export default function App() { )} {view.name === "api" && setView({ name: "account" })} />} {view.name === "account" && } + {view.name === "contact" && }