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

Function onTabClick

packages/shared/src/components/shell/ShellCluster.tsx:214–218  ·  view source on GitHub ↗
(tab: ClusterTab)

Source from the content-addressed store, hash-verified

212 };
213
214 const onTabClick = (tab: ClusterTab) => (event: React.MouseEvent) => {
215 if (activate(tab)) {
216 event.preventDefault();
217 }
218 };
219
220 // iOS Safari turns a finger held on a link into a URL preview and cancels
221 // the pointer, so the bar owns its touches: nothing native starts from

Callers 3

onClickFunction · 0.85
ShellClusterFunction · 0.85
Activity.spec.tsxFile · 0.85

Calls 1

activateFunction · 0.85

Tested by

no test coverage detected