diff --git a/docs-site/components/cookbook/HardwarePicker.tsx b/docs-site/components/cookbook/HardwarePicker.tsx index 927fc2b84..e012d0489 100644 --- a/docs-site/components/cookbook/HardwarePicker.tsx +++ b/docs-site/components/cookbook/HardwarePicker.tsx @@ -1,4 +1,4 @@ -import { useId, useState } from "react"; +import { useEffect, useId, useState } from "react"; import { Input } from "@/components/ui/input"; export default function HardwarePicker({ @@ -14,10 +14,11 @@ export default function HardwarePicker({ }) { const [search, setSearch] = useState(""); const [adding, setAdding] = useState(false); - const [custom, setCustom] = useState(() => { + const [custom, setCustom] = useState(""); + useEffect(() => { const requested = new URL(window.location.href).searchParams.get("hardware"); - return requested?.startsWith("custom:") ? requested.slice(7) : ""; - }); + setCustom(requested?.startsWith("custom:") ? requested.slice(7) : ""); + }, []); const id = useId(); const known = options.filter((option) => option.join(" ").toLowerCase().includes(search.toLowerCase())); function add() { diff --git a/docs-site/components/cookbook/ModelRelease.tsx b/docs-site/components/cookbook/ModelRelease.tsx deleted file mode 100644 index 63299bb2e..000000000 --- a/docs-site/components/cookbook/ModelRelease.tsx +++ /dev/null @@ -1,43 +0,0 @@ -import ModelHeader from "./ModelHeader"; -import ComponentPlan from "./ComponentPlan"; -import { sitePath, type DirectoryModel } from "@/lib/cookbook-pages"; - -export default function ModelRelease({ model }: { model: DirectoryModel }) { - return ( -
FastH3 Trim is the smaller FastH3 model, previously called CompactH3.
-A maintained serving recipe is being prepared. Use the published checkpoint instructions for setup.
-