mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-11-30 06:12:37 +03:00
fixed popover ui issue
This commit is contained in:
parent
e85ab5be22
commit
d97909d242
@ -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: {
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user