MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / onSubmit

Function onSubmit

components/forms/github-form.tsx:64–80  ·  view source on GitHub ↗
(data: z.infer<typeof formSchema>)

Source from the content-addressed store, hash-verified

62 return usernameRegex.test(trimmed);
63 }, "Please enter a valid GitHub username or profile URL"),
64});
65
66export function GithubFormFallback() {
67 return (
68 <div className="flex w-full max-w-md flex-col items-center gap-5">
69 <Skeleton className="h-8 w-3/4" />
70 <Skeleton className="h-8 w-full" />
71 </div>
72 );
73}
74
75export function SubmitGithubForm() {
76 const router = useRouter();
77 const [loading, setLoading] = React.useState(false);
78 const username = useInitialUsername();
79
80 const form = useForm<z.infer<typeof formSchema>>({
81 defaultValues: {
82 githubProfileUrl: username ? `https://github.com/${username}` : "",
83 },

Callers

nothing calls this directly

Calls 1

submitGithubFormFunction · 0.90

Tested by

no test coverage detected