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

Function onCreateNewFeed

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

Source from the content-addressed store, hash-verified

20 const sourceId = source?.id ?? '';
21
22 const onCreateNewFeed = () => {
23 if (!source?.id) {
24 return;
25 }
26
27 router.push(
28 `${webappUrl}feeds/new?entityId=${sourceId}&entityType=${ContentPreferenceType.Source}`,
29 );
30 };
31
32 const onUndo = () => {
33 if (!source?.id || !source.handle) {

Callers 1

handleOpenModalFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected