chore: use fontDefault on ActionSheet item

This commit is contained in:
GleidsonDaniel 2024-03-13 16:45:11 -03:00
parent 87f4faa97e
commit 476a1c362f
1 changed files with 5 additions and 5 deletions

View File

@ -27,19 +27,19 @@ export const Item = React.memo(({ item, hide }: IActionSheetItem) => {
}
};
let textColor = colors.bodyText;
let color = colors.fontDefault;
if (item.danger) {
textColor = colors.dangerColor;
color = colors.dangerColor;
}
if (!enabled) {
textColor = colors.fontDisabled;
color = colors.fontDisabled;
}
return (
<Touch onPress={onPress} style={[styles.item, { backgroundColor: colors.focusedBackground }]} testID={item.testID}>
{item.icon ? <CustomIcon name={item.icon} size={20} color={textColor} /> : null}
{item.icon ? <CustomIcon name={item.icon} size={20} color={color} /> : null}
<View style={styles.titleContainer}>
<Text numberOfLines={1} style={[styles.title, { color: textColor, marginLeft: item.icon ? 16 : 0 }]}>
<Text numberOfLines={1} style={[styles.title, { color, marginLeft: item.icon ? 16 : 0 }]}>
{item.title}
</Text>
</View>