移除首页 API 调用说明入口 #23

Merged
lixu merged 1 commits from devin/1782276245-home-remove-api-cta into main 2026-06-24 12:46:03 +08:00
2 changed files with 0 additions and 10 deletions
-1
View File
@@ -78,7 +78,6 @@ export default function App() {
<Home <Home
onOpen={(id) => setView({ name: "product", id })} onOpen={(id) => setView({ name: "product", id })}
onContribute={() => setView({ name: "contribute" })} onContribute={() => setView({ name: "contribute" })}
onApi={() => setView({ name: "api" })}
/> />
)} )}
{view.name === "product" && ( {view.name === "product" && (
-9
View File
@@ -26,11 +26,9 @@ const FEATURES = [
export default function Home({ export default function Home({
onOpen, onOpen,
onContribute, onContribute,
onApi,
}: { }: {
onOpen: (id: string) => void; onOpen: (id: string) => void;
onContribute: () => void; onContribute: () => void;
onApi: () => void;
}) { }) {
const [q, setQ] = useState(""); const [q, setQ] = useState("");
const [items, setItems] = useState<ProductSummary[]>([]); const [items, setItems] = useState<ProductSummary[]>([]);
@@ -99,13 +97,6 @@ export default function Home({
</button> </button>
))} ))}
</div> </div>
<button
onClick={onApi}
className="mt-5 inline-flex items-center gap-1.5 text-sm font-medium text-brand-700 hover:underline"
>
<Code2 className="w-4 h-4" /> API
</button>
</div> </div>
</section> </section>