mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-19 19:31:54 +03:00
using stock dropdown button styling in wallet header
This commit is contained in:
parent
7d1bdbae4a
commit
7516d81f39
@ -14,14 +14,7 @@ export default EStyleSheet.create({
|
||||
justifyContent: 'center',
|
||||
alignSelf: 'center',
|
||||
},
|
||||
dropdownRowText: {
|
||||
fontSize: 14,
|
||||
color: '$primaryDarkGray',
|
||||
textAlign: 'center',
|
||||
},
|
||||
dropdownRowStyle: {
|
||||
marginLeft: 0,
|
||||
},
|
||||
|
||||
dropdownButtonStyle: {
|
||||
justifyContent: 'center',
|
||||
alignSelf: 'center',
|
||||
|
@ -61,16 +61,15 @@ const WalletHeaderView = ({
|
||||
<View style={styles.balanceWrapper} key={balance + _key}>
|
||||
<Text style={styles.balanceText}>{balance}</Text>
|
||||
<DropdownButton
|
||||
dropdownRowWrapper={styles.dropdownRowStyle}
|
||||
dropdownRef={dropdownRef}
|
||||
isHasChildIcon
|
||||
iconName="arrow-drop-down"
|
||||
options={options.map((itemKey) => intl.formatMessage({ id: `wallet.${itemKey}` }))}
|
||||
options={options.map((itemKey) =>
|
||||
intl.formatMessage({ id: `wallet.${itemKey}` }).toUpperCase(),
|
||||
)}
|
||||
noHighlight
|
||||
dropdownButtonStyle={styles.dropdownButtonStyle}
|
||||
onSelect={(selectedIndex) => handleOnDropdownSelected(options[selectedIndex])}
|
||||
rowTextStyle={styles.dropdownRowText}
|
||||
dropdownStyle={styles.dropdownStyle}
|
||||
iconStyle={styles.dropdownIconStyle}
|
||||
/>
|
||||
<Text style={styles.subText}>{intl.formatMessage({ id: `wallet.${_key}.title` })}</Text>
|
||||
|
Loading…
Reference in New Issue
Block a user