updated a bit

This commit is contained in:
u-e 2019-01-30 12:17:56 +03:00
parent 9e7b5cf7f8
commit 03026ea6ec

View File

@ -259,18 +259,18 @@ class UpvoteView extends Component {
<Fragment> <Fragment>
<TouchableOpacity <TouchableOpacity
onPress={() => { onPress={() => {
closePopover(); closePopover();
this._upvoteContent(); this._upvoteContent();
}} }}
style={styles.upvoteButton} style={styles.upvoteButton}
> >
<Icon <Icon
size={20} size={20}
style={[styles.upvoteIcon, { color: '#007ee5' }]} style={[styles.upvoteIcon, { color: '#007ee5' }]}
active={!isLoggedIn} active={!isLoggedIn}
iconType={iconType} iconType={iconType}
name={iconName} name={iconName}
/> />
</TouchableOpacity> </TouchableOpacity>
<Text style={styles.amount}>{_amount}</Text> <Text style={styles.amount}>{_amount}</Text>
<Slider <Slider
@ -281,10 +281,10 @@ class UpvoteView extends Component {
thumbTintColor="#007ee5" thumbTintColor="#007ee5"
value={sliderValue} value={sliderValue}
onValueChange={(value) => { onValueChange={(value) => {
this.setState({ sliderValue: value }, () => { this.setState({ sliderValue: value }, () => {
this._calculateEstimatedAmount(); this._calculateEstimatedAmount();
}); });
}} }}
/> />
<Text style={styles.percent}>{_percent}</Text> <Text style={styles.percent}>{_percent}</Text>
</Fragment> </Fragment>