disable follow button if loading in progress

This commit is contained in:
noumantahir 2021-11-26 12:28:57 +05:00
parent 00685cc91a
commit bf4ae03eb3

View File

@ -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>