MCPcopy Create free account
hub / github.com/dailydotdev/apps / onClick

Function onClick

packages/shared/src/components/modals/common/ModalTabs.tsx:19–22  ·  view source on GitHub ↗
(tab: string)

Source from the content-addressed store, hash-verified

17}: ModalTabsProps): ReactElement {
18 const { activeView, setActiveView, tabs } = useContext(ModalPropsContext);
19 const onClick = (tab: string) => {
20 setActiveView(tab);
21 onTabClick?.(tab);
22 };
23
24 return (
25 <ul className={classNames(className, 'flex flex-row gap-4')}>

Callers 1

ModalTabsFunction · 0.70

Calls 2

setActiveViewFunction · 0.85
onTabClickFunction · 0.85

Tested by

no test coverage detected