Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32558364
D12645.1767264881.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
952 B
Referenced Files
None
Subscribers
None
D12645.1767264881.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
Thu, Jan 1, 10:54 AM (5 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5874149
Default Alt Text
D12645.1767264881.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