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

Function onOpenModal

packages/shared/src/hooks/usePostModalNavigation.ts:188–194  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

186 );
187
188 const onOpenModal = (index: number) => {
189 if (!pmid) {
190 scrollPositionOnFeed.current = window.scrollY;
191 }
192
193 onChangeSelected(index);
194 };
195
196 const getPostPosition = () => {
197 const firstPost = items.findIndex(isPostItem);

Callers 1

onPostModalOpenFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected