MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / handleTabClick

Function handleTabClick

web/src/components/ui/landing/competition/tabs.tsx:109–115  ·  view source on GitHub ↗
(tab: CompetitorType)

Source from the content-addressed store, hash-verified

107 const isVertical = layout === 'vertical' && !isMobile
108
109 const handleTabClick = (tab: CompetitorType) => {
110 if (onTabChange) {
111 onTabChange(tab)
112 } else {
113 setInternalActiveTab(tab)
114 }
115 }
116
117 useEffect(() => {
118 if (controlledActiveTab !== undefined) return

Callers 1

CompetitionTabsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected