MCPcopy Create free account
hub / github.com/9d8dev/directory / resetForm

Function resetForm

components/admin/bookmark-manager.tsx:221–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219 }, [isSheetOpen, selectedBookmark]);
220
221 const resetForm = () => {
222 setFormData({
223 title: "",
224 slug: "",
225 url: "",
226 description: "",
227 overview: "",
228 search_results: "",
229 favicon: "",
230 ogImage: "",
231 categoryId: "none",
232 isFavorite: false,
233 isArchived: false,
234 });
235 };
236
237 const handleEdit = (bookmark: BookmarkWithCategory) => {
238 setSelectedBookmark(bookmark);

Callers 2

handleSubmitFunction · 0.85
BookmarkManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected