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

Function onSwipedRight

packages/shared/src/components/containers/Carousel.tsx:49–57  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

47 };
48
49 const onSwipedRight: SwipeCallback = (e) => {
50 e?.event?.stopPropagation?.();
51
52 if (index === 0) {
53 return isNullOrUndefined(e?.dir) && onClose?.(e);
54 }
55
56 return onUpdateIndex(-1);
57 };
58
59 const onSwipedLeft: SwipeCallback = (e) => {
60 e?.event?.stopPropagation?.();

Callers 3

PromotionTourFunction · 0.85
SquadTourFunction · 0.85

Calls 3

isNullOrUndefinedFunction · 0.90
onUpdateIndexFunction · 0.85
onCloseFunction · 0.50

Tested by

no test coverage detected