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

Function onArticleLink

packages/shared/src/components/shell/ReadingDrawer.tsx:828–835  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

826 };
827 // The wrapper hands back links to the app found inside the article.
828 const onArticleLink = (event: Event) => {
829 const { url } = (event as CustomEvent<{ url: string }>).detail ?? {};
830 if (url) {
831 linkAfterClose.current = url;
832 closedBy.current = CloseReason.Link;
833 closeReading();
834 }
835 };
836 // A tap on the dimmed page puts the post back down.
837 const onClick = (event: MouseEvent) => {
838 if (

Callers

nothing calls this directly

Calls 1

closeReadingFunction · 0.90

Tested by

no test coverage detected