Skip to content

Commit

Permalink
Update CurrencyMenu.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Dec 18, 2024
1 parent 10266f0 commit fa8d606
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions mobile/components/CurrencyMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CurrencyMenu = ({
},
text: {
color: textColor || '#000',
fontWeight: '500'
fontWeight: 'bold'
},
menu: {
position: 'absolute',
Expand All @@ -51,16 +51,20 @@ const CurrencyMenu = ({
width: 70,
height: 32,
backgroundColor: '#fff',
color: '#515151',
// backgroundColor: '#feeee4',
// color: '#f37022',
textAlign: 'center',
verticalAlign: 'middle',
borderColor: '#f1f1f1',
borderWidth: 1,
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
menuItemText: {
color: '#515151',
textAlign: 'center',
},
selected: {
backgroundColor: '#feeee4',
},
textSelected: {
color: '#f37022',
}
})
Expand All @@ -87,7 +91,9 @@ const CurrencyMenu = ({
setShowMenu(false)
}}
>
<Text style={{ ...styles.menuItem, ...(currency.code === value ? styles.selected : null) }}>{currency.code}</Text>
<View style={{ ...styles.menuItem, ...(currency.code === value ? styles.selected : null) }}>
<Text style={{ ...styles.menuItemText, ...(currency.code === value ? styles.textSelected : null) }}>{currency.code}</Text>
</View>
</Pressable>
))
}
Expand Down

0 comments on commit fa8d606

Please sign in to comment.