MCPcopy Create free account
hub / github.com/code100x/cms / handleSuggestionClick

Function handleSuggestionClick

src/components/Signin.tsx:88–94  ·  view source on GitHub ↗
(domain: string)

Source from the content-addressed store, hash-verified

86 };
87
88 const handleSuggestionClick = (domain: string) => {
89 const [username] = email.current.split('@');
90 const newEmail = `${username}@${domain}`;
91 email.current = newEmail;
92 passwordRef.current?.focus();
93 setSuggestedDomains([]);
94 };
95
96 // Handle keyboard events for navigating and selecting suggestions
97 const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {

Callers 2

handleKeyDownFunction · 0.85
SigninFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected