Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3575087
D12645.id41928.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
952 B
Referenced Files
None
Subscribers
None
D12645.id41928.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12645: [native] extend icon prop in EnumSettingsOption to handle illustration components
Attached
Detach File
Event Timeline
Log In to Comment