MCPcopy Create free account
hub / github.com/code100x/daily-code / handleOptionClick

Function handleOptionClick

apps/web/components/profile/ProfileOptions.tsx:31–34  ·  view source on GitHub ↗
(index: number, href: string)

Source from the content-addressed store, hash-verified

29 }, [pathname, optionsData]);
30
31 const handleOptionClick = (index: number, href: string) => {
32 setActiveOption(index);
33 router.push(href);
34 };
35 return (
36 <div className="flex gap-2 flex-col px-2 !max-h-[80%] overflow-y-auto w-full">
37 {optionsData.map((x, i) => {

Callers 1

ProfileOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected