mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-23 13:22:02 +03:00
disable follow button if loading in progress
This commit is contained in:
parent
00685cc91a
commit
bf4ae03eb3
@ -112,6 +112,7 @@ class ProfileSummaryView extends PureComponent {
|
||||
percentVP,
|
||||
username,
|
||||
} = this.props;
|
||||
|
||||
let dropdownOptions = [];
|
||||
const votingPowerHoursText = hoursVP && `• Full in ${hoursVP} hours`;
|
||||
const votingPowerText = `Voting power: ${percentVP}% ${votingPowerHoursText || ''}`;
|
||||
@ -236,6 +237,7 @@ class ProfileSummaryView extends PureComponent {
|
||||
<TouchableOpacity
|
||||
style={styles.followActionWrapper}
|
||||
onPress={() => handleFollowUnfollowUser(!isFollowing)}
|
||||
disabled={isProfileLoading}
|
||||
>
|
||||
<Text style={styles.actionText}>{followButtonText}</Text>
|
||||
</TouchableOpacity>
|
||||
|
Loading…
Reference in New Issue
Block a user