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

Function onHideClick

packages/shared/src/components/post/PostItemCard.tsx:65–72  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

63 const { source } = post;
64 const sourceImage = source?.image ?? '';
65 const onHideClick = (e: MouseEvent) => {
66 e.stopPropagation();
67 e.preventDefault();
68 if (!onHide || !timestampDb) {
69 return;
70 }
71 onHide({ postId: post.id, timestamp: timestampDb });
72 };
73 const article = post?.sharedPost ?? post;
74 const isUserSource = isSourceUserSource(source);
75

Callers

nothing calls this directly

Calls 1

onHideFunction · 0.50

Tested by

no test coverage detected