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

Function onCommentClick

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

Source from the content-addressed store, hash-verified

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

Callers 6

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

Calls 1

focusInputByIdFunction · 0.85

Tested by

no test coverage detected