Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3156403
D11786.id39562.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
996 B
Referenced Files
None
Subscribers
None
D11786.id39562.diff
View Options
diff --git a/native/invite-links/view-invite-links-screen.react.js b/native/invite-links/view-invite-links-screen.react.js
--- a/native/invite-links/view-invite-links-screen.react.js
+++ b/native/invite-links/view-invite-links-screen.react.js
@@ -7,7 +7,7 @@
import { inviteLinkURL } from 'lib/facts/links.js';
import { primaryInviteLinksSelector } from 'lib/selectors/invite-links-selectors.js';
-import { threadHasPermission } from 'lib/shared/thread-utils.js';
+import { useThreadHasPermission } from 'lib/shared/thread-utils.js';
import type { InviteLink } from 'lib/types/link-types.js';
import type { ThreadInfo } from 'lib/types/minimally-encoded-thread-permissions-types.js';
import { threadPermissions } from 'lib/types/thread-permission-types.js';
@@ -57,7 +57,7 @@
},
});
}, [community, navigate]);
- const canManageLinks = threadHasPermission(
+ const canManageLinks = useThreadHasPermission(
community,
threadPermissions.MANAGE_INVITE_LINKS,
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 3:26 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2431278
Default Alt Text
D11786.id39562.diff (996 B)
Attached To
Mode
D11786: [native] Replace `threadHasPermission` with `useThreadHasPermission` in `ViewInviteLinksScreen`
Attached
Detach File
Event Timeline
Log In to Comment