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

Function openFollowList

packages/shared/src/components/shell/YouPage.tsx:279–293  ·  view source on GitHub ↗
(
    type: LazyModal.UserFollowersModal | LazyModal.UserFollowingModal,
    placeholderAmount: number,
  )

Source from the content-addressed store, hash-verified

277 user &&
278 `${webappUrl}feeds/${isCustomDefaultFeed ? defaultFeedId : user.id}/edit`;
279 const openFollowList = (
280 type: LazyModal.UserFollowersModal | LazyModal.UserFollowingModal,
281 placeholderAmount: number,
282 ) => {
283 if (!placeholderAmount || !user) {
284 return;
285 }
286 openModal({
287 type,
288 props: {
289 queryProps: { id: user.id, entity: ContentPreferenceType.User },
290 placeholderAmount,
291 },
292 });
293 };
294
295 const actions = (
296 <>

Callers 1

YouPageFunction · 0.85

Calls 1

openModalFunction · 0.85

Tested by

no test coverage detected