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

Function onCommentClick

packages/shared/src/components/Feed.tsx:738–758  ·  view source on GitHub ↗
(
    post: Post,
    index: number,
    row: number,
    column: number,
    isAd?: boolean,
  )

Source from the content-addressed store, hash-verified

736 };
737
738 const onCommentClick = (
739 post: Post,
740 index: number,
741 row: number,
742 column: number,
743 isAd?: boolean,
744 ): void => {
745 logEvent(
746 postLogEvent(LogEvent.CommentsClick, post, {
747 columns: virtualizedNumCards,
748 column,
749 row,
750 index,
751 ...feedLogExtra(feedName, ranking, searchLogExtra),
752 is_ad: isAd,
753 }),
754 );
755 if (!shouldUseListFeedLayout || isReaderEligiblePost(post)) {
756 onPostModalOpen({ index, row, column });
757 }
758 };
759
760 if (isError) {
761 return <FeedErrorScreen error={feedError} />;

Callers 2

FeedItemComponentFunction · 0.70
FooterWrapper.tsxFile · 0.50

Calls 4

postLogEventFunction · 0.90
feedLogExtraFunction · 0.90
logEventFunction · 0.85
onPostModalOpenFunction · 0.85

Tested by

no test coverage detected