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

Function resetForm

client-next/src/components/add-skill-dialog.tsx:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100 const [urlInput, setUrlInput] = useState("");
101
102 const resetForm = () => {
103 setName("");
104 setDescription("");
105 setContent(SKILL_TEMPLATE);
106 setError("");
107 setUrlInput("");
108 };
109
110 const handleFetchUrl = async () => {
111 if (!urlInput.trim()) return;

Callers 2

handleSubmitFunction · 0.70
AddSkillDialogFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected