Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32212223
D8332.1765140571.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D8332.1765140571.diff
View Options
diff --git a/native/invite-links/invite-links-button.react.js b/native/components/community-actions-button.react.js
rename from native/invite-links/invite-links-button.react.js
rename to native/components/community-actions-button.react.js
--- a/native/invite-links/invite-links-button.react.js
+++ b/native/components/community-actions-button.react.js
@@ -11,7 +11,7 @@
import { threadPermissions } from 'lib/types/thread-permission-types.js';
import type { ThreadInfo } from 'lib/types/thread-types.js';
-import SWMansionIcon from '../components/swmansion-icon.react.js';
+import SWMansionIcon from './swmansion-icon.react.js';
import {
InviteLinkNavigatorRouteName,
ManagePublicLinkRouteName,
@@ -24,7 +24,7 @@
+community: ThreadInfo,
};
-function InviteLinksButton(props: Props): React.Node {
+function CommunityActionsButton(props: Props): React.Node {
const { community } = props;
const inviteLink = useSelector(primaryInviteLinksSelector)[community.id];
@@ -131,4 +131,4 @@
},
};
-export default InviteLinksButton;
+export default CommunityActionsButton;
diff --git a/native/navigation/community-drawer-item.react.js b/native/navigation/community-drawer-item.react.js
--- a/native/navigation/community-drawer-item.react.js
+++ b/native/navigation/community-drawer-item.react.js
@@ -9,8 +9,8 @@
import SubchannelsButton from './subchannels-button.react.js';
import ThreadAvatar from '../avatars/thread-avatar.react.js';
import type { MessageListParams } from '../chat/message-list-types.js';
+import CommunityActionsButton from '../components/community-actions-button.react.js';
import { SingleLine } from '../components/single-line.react.js';
-import InviteLinksButton from '../invite-links/invite-links-button.react.js';
import { useStyles } from '../themes/colors.js';
import type { CommunityDrawerItemDataFlattened } from '../utils/drawer-utils.react.js';
@@ -90,7 +90,7 @@
</View>
<SingleLine style={labelStyle}>{uiName}</SingleLine>
</TouchableOpacity>
- <InviteLinksButton community={threadInfo} />
+ <CommunityActionsButton community={threadInfo} />
</View>
{subchannelsButton}
</View>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 8:49 PM (2 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5845967
Default Alt Text
D8332.1765140571.diff (2 KB)
Attached To
Mode
D8332: [native] Rename InviteLinksButton to CommunityActionsButton
Attached
Detach File
Event Timeline
Log In to Comment