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

Function onCommentClick

packages/shared/src/components/post/NewComment.tsx:141–149  ·  view source on GitHub ↗
(origin: Origin)

Source from the content-addressed store, hash-verified

139 }, [post, hasCommentQuery, onShowComment, router, shouldHandleCommentQuery]);
140
141 const onCommentClick = (origin: Origin) => {
142 if (!user) {
143 return showLogin({ trigger: AuthTriggers.NewComment });
144 }
145
146 onShowComment(origin);
147 focusInputById(inputId);
148 return undefined;
149 };
150
151 useImperativeHandle(ref, () => ({
152 onShowInput: onCommentClick,

Callers 7

NewCommentComponentFunction · 0.70
MobilePostFloatingBarFunction · 0.70
MobilePostFloatingBarV1Function · 0.70
ActionButtonsV1Function · 0.50
ActionButtonsFunction · 0.50
FeedCardGlassActionsFunction · 0.50
renderComposerTriggerFunction · 0.50

Calls 1

focusInputByIdFunction · 0.85

Tested by

no test coverage detected