Page MenuHomePhabricator

D12645.id41928.diff
No OneTemporary

D12645.id41928.diff

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
@@ -9,7 +9,7 @@
type InputType = 'radio' | 'checkbox';
type EnumSettingsOptionProps = {
- +icon?: string,
+ +icon?: string | React.Node,
+name: string,
+description: string,
+enumValue: boolean,
@@ -34,11 +34,15 @@
return null;
}
- return (
- <View style={styles.enumIcon}>
- <CommIcon name="megaphone" size={24} color={colors.purpleButton} />
- </View>
- );
+ if (typeof icon === 'string') {
+ return (
+ <View style={styles.enumIcon}>
+ <CommIcon name={icon} size={24} color={colors.purpleButton} />
+ </View>
+ );
+ }
+
+ return icon;
}, [icon, styles.enumIcon, colors.purpleButton]);
const infoContainerStyle = React.useMemo(

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 29, 6:19 PM (7 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2733864
Default Alt Text
D12645.id41928.diff (952 B)

Event Timeline