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

Function onOpenModal

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

Source from the content-addressed store, hash-verified

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

Callers 1

onPostModalOpenFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected