Page MenuHomePhabricator

D8314.diff
No OneTemporary

D8314.diff

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

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)

Event Timeline