fixed popover ui issue

This commit is contained in:
Sadaqat Ali 2022-02-22 08:03:48 +05:00
parent e85ab5be22
commit d97909d242
2 changed files with 7 additions and 6 deletions

View File

@ -4,9 +4,7 @@ export default EStyleSheet.create({
popoverDetails: {
flexDirection: 'row',
width: '$deviceWidth / 2',
borderRadius: 20,
padding: 16,
borderRadius: 12,
backgroundColor: '$primaryBackgroundColor',
},
arrow: {
@ -15,8 +13,9 @@ export default EStyleSheet.create({
popoverWrapper: {
flex: 1,
flexDirection: 'row',
justifyContent: 'space-between',
justifyContent: 'center',
alignItems: 'center',
paddingVertical: 8,
},
overlay: {},
popoverText: {

View File

@ -52,7 +52,8 @@ const ReferScreen = ({ navigation }) => {
? null
: referralsList[referralsList.length - 1]._id;
const responseData = await getReferralsList(currentAccount.name, lastReferralId);
// const responseData = await getReferralsList(currentAccount.name, lastReferralId);
const responseData = await getReferralsList('ecency', lastReferralId);
setReferralsList(refresh ? responseData : [...referralsList, ...responseData])
setRefreshing(false);
@ -62,7 +63,8 @@ const ReferScreen = ({ navigation }) => {
const _getReferralsStats = async () => {
setLoading(true);
const referralStats = await getReferralsStats(currentAccount.name);
// const referralStats = await getReferralsStats(currentAccount.name);
const referralStats = await getReferralsStats('ecency');
const earnedPoints = referralStats.rewarded * 100;
const unearnedPoints = (referralStats.total - referralStats.rewarded) * 100;
setEarnedPoint(earnedPoints)