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

Function onUpdateIndex

packages/shared/src/components/containers/Carousel.tsx:44–47  ·  view source on GitHub ↗
(increment: number)

Source from the content-addressed store, hash-verified

42 const [index, setIndex] = useState(preSelectedIndex);
43
44 const onUpdateIndex = (increment: number) => {
45 onScreenIndexChange?.(index + increment);
46 return setIndex((state) => state + increment);
47 };
48
49 const onSwipedRight: SwipeCallback = (e) => {
50 e?.event?.stopPropagation?.();

Callers 2

onSwipedRightFunction · 0.85
onSwipedLeftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected