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

Function onAdd

packages/shared/src/hooks/useSourceMenuProps.tsx:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43 };
44
45 const onAdd = () => {
46 if (!source?.id || !source.handle) {
47 return;
48 }
49
50 follow({
51 id: sourceId,
52 entity: ContentPreferenceType.Source,
53 entityName: source.handle,
54 feedId,
55 });
56 };
57
58 const shareProps: UseShareOrCopyLinkProps = {
59 text: source?.handle

Callers 3

handleAddToCustomFeedFunction · 0.50
TrayItemFunction · 0.50
PickRowFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected