mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 12:51:42 +03:00
fixed wrong title
This commit is contained in:
parent
eca4dd2ebf
commit
1bf9ffef47
@ -45,15 +45,13 @@ class BoostScreen extends PureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_getTitle = title => {
|
_getTitle = title => {
|
||||||
const _title = title && title.toLowerCase();
|
let _title = title.toUpperCase();
|
||||||
|
|
||||||
if (_title) {
|
if (_title.includes('(ESTEEM)')) {
|
||||||
if (title.includes('(ESTEEM)')) return title.replace('(ESTEEM)', '');
|
_title = _title.replace('(ESTEEM)', '');
|
||||||
|
|
||||||
return title.toUpperCase();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return _title;
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
@ -87,7 +85,7 @@ class BoostScreen extends PureComponent {
|
|||||||
isLoading={false}
|
isLoading={false}
|
||||||
>
|
>
|
||||||
<View style={styles.buttonContent}>
|
<View style={styles.buttonContent}>
|
||||||
<Text style={styles.buttonText}>{this._getTitle(get(item, 'title', ''))}</Text>
|
<Text style={styles.buttonText}>{this._getTitle(get(item, 'title'))}</Text>
|
||||||
<View style={styles.buttonIconWrapper}>
|
<View style={styles.buttonIconWrapper}>
|
||||||
<Icon name="add" iconType="MaterialIcons" color="#357ce6" size={23} />
|
<Icon name="add" iconType="MaterialIcons" color="#357ce6" size={23} />
|
||||||
</View>
|
</View>
|
||||||
|
Loading…
Reference in New Issue
Block a user