Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3397359
D8444.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D8444.diff
View Options
diff --git a/native/invite-links/manage-public-link-screen.react.js b/native/invite-links/manage-public-link-screen.react.js
--- a/native/invite-links/manage-public-link-screen.react.js
+++ b/native/invite-links/manage-public-link-screen.react.js
@@ -64,16 +64,19 @@
},
);
}, [disableInviteLink]);
- let disablePublicLinkButton = null;
+ let disablePublicLinkSection = null;
if (inviteLink) {
- disablePublicLinkButton = (
- <View style={styles.destructiveButtonContainer}>
+ disablePublicLinkSection = (
+ <View style={[styles.section, styles.disableLinkSection]}>
+ <Text style={styles.sectionText}>
+ You may also disable the community public link.
+ </Text>
<Button
style={[styles.button, styles.destructiveButton]}
onPress={onDisableButtonClick}
disabled={isLoading}
>
- <Text style={styles.destructiveButtonText}>Disable public link</Text>
+ <Text style={styles.destructiveButtonText}>Disable</Text>
</Button>
</View>
);
@@ -82,11 +85,14 @@
return (
<View>
<View style={styles.section}>
- <Text style={styles.sectionText}>
+ <Text style={[styles.sectionText, styles.withMargin]}>
Invite links make it easy for your friends to join your community.
Anybody who knows your community’s invite link will be able to join
- it.{'\n\n'}Note that if you change your public link’s URL, other
- communities will be able to claim the old URL.
+ it.
+ </Text>
+ <Text style={styles.sectionText}>
+ Note that if you change your public link’s URL, other communities will
+ be able to claim the old URL.
</Text>
</View>
<Text style={styles.sectionTitle}>INVITE URL</Text>
@@ -112,7 +118,7 @@
<Text style={styles.buttonText}>Save & enable public link</Text>
</Button>
</View>
- {disablePublicLinkButton}
+ {disablePublicLinkSection}
</View>
);
}
@@ -125,7 +131,6 @@
color: 'modalBackgroundLabel',
paddingHorizontal: 16,
paddingBottom: 4,
- marginTop: 24,
},
section: {
borderBottomColor: 'modalSeparator',
@@ -134,6 +139,10 @@
borderTopWidth: 1,
backgroundColor: 'modalForeground',
padding: 16,
+ marginBottom: 24,
+ },
+ disableLinkSection: {
+ marginTop: 16,
},
sectionText: {
fontSize: 14,
@@ -141,6 +150,9 @@
lineHeight: 22,
color: 'modalBackgroundLabel',
},
+ withMargin: {
+ marginBottom: 12,
+ },
inviteLink: {
flexDirection: 'row',
alignItems: 'center',
@@ -171,9 +183,6 @@
buttonPrimary: {
backgroundColor: 'purpleButton',
},
- destructiveButtonContainer: {
- margin: 16,
- },
destructiveButton: {
borderWidth: 1,
borderRadius: 8,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 2, 5:21 PM (19 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2608339
Default Alt Text
D8444.diff (2 KB)
Attached To
Mode
D8444: [native] Make manage links modal consistent with web
Attached
Detach File
Event Timeline
Log In to Comment