MCPcopy Create free account
hub / github.com/cursor/community-plugins / onSubmit

Function onSubmit

apps/cursor/src/components/forms/profile.tsx:92–103  ·  view source on GitHub ↗
(data: z.infer<typeof formSchema>)

Source from the content-addressed store, hash-verified

90 });
91
92 const onSubmit = (data: z.infer<typeof formSchema>) => {
93 execute({
94 name: data.name,
95 status: data.status || null,
96 bio: data.bio || null,
97 work: data.work || null,
98 website: data.website || null,
99 social_x_link: data.social_x_link || null,
100 is_public: data.is_public ?? true,
101 slug: data.slug,
102 });
103 };
104
105 return (
106 <Form {...form}>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected