MCPcopy Create free account
hub / github.com/Microck/opencode-studio / resetForm

Function resetForm

client-next/src/components/add-plugin-dialog.tsx:327–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

325 const [configImporting, setConfigImporting] = useState(false);
326
327 const resetForm = () => {
328 setName("");
329 setFileType("ts");
330 setTemplate("basic");
331 setContent(PLUGIN_TEMPLATES.basic.ts);
332 setError("");
333 setUrlInput("");
334 };
335
336 const handleTypeChange = (type: "js" | "ts") => {
337 setFileType(type);

Callers 3

handleConfigPasteFunction · 0.70
handleSubmitFunction · 0.70
AddPluginDialogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected