Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3751055
D8314.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8314.diff
View Options
diff --git a/native/community-creation/community-configuration.react.js b/native/community-creation/community-configuration.react.js
--- a/native/community-creation/community-configuration.react.js
+++ b/native/community-creation/community-configuration.react.js
@@ -113,6 +113,10 @@
setAnnouncementSetting(!announcementSetting);
}, [announcementSetting]);
+ const enumSettingsOptionDescription =
+ 'Make it so only admins can post to ' +
+ 'the root channel of the community.';
+
return (
<RegistrationContainer>
<RegistrationContentContainer style={styles.containerPaddingOverride}>
@@ -141,7 +145,7 @@
<EnumSettingsOption
icon="megaphone"
name="Announcement root"
- description="Make it so that only admins can post to the root channel of the community."
+ description={enumSettingsOptionDescription}
enumValue={announcementSetting}
onEnumValuePress={onCheckBoxPress}
/>
diff --git a/native/components/enum-settings-option.react.js b/native/components/enum-settings-option.react.js
--- a/native/components/enum-settings-option.react.js
+++ b/native/components/enum-settings-option.react.js
@@ -20,7 +20,7 @@
const { icon, name, description, enumValue, onEnumValuePress } = props;
const enumIcon = React.useMemo(() => {
- if (icon) {
+ if (!icon) {
return null;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 11:20 PM (19 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2856577
Default Alt Text
D8314.diff (1 KB)
Attached To
Mode
D8314: [native] Quick fix for EnumSettingsOption
Attached
Detach File
Event Timeline
Log In to Comment