diff --git a/src/pages/Portfolio/ImpactDashboard/AccountOverview.vue b/src/pages/Portfolio/ImpactDashboard/AccountOverview.vue index 330b6942de..cefee07766 100644 --- a/src/pages/Portfolio/ImpactDashboard/AccountOverview.vue +++ b/src/pages/Portfolio/ImpactDashboard/AccountOverview.vue @@ -41,19 +41,6 @@ {{ amountOutstanding | numeral('$0,0.00') }} -
-
- Loans made -
- -
- {{ numberOfLoans | numeral('0,0') }} -
-
- -

+ +

Your lending insights

- -
- -
- {{ countryCount }} -
-
- Countries supported -
- - Details - -
-
- -
- {{ inviteeLoanCount }} -
-
- Loans by your invitees -
- - Details - -
-
- + +
+
{{ amountLent }}
@@ -43,10 +13,15 @@ Total amount lent Details +
-
+
+ +
+ {{ numberOfLoans | numeral('0,0') }} +
+
+ Loans made +
+
+
+ +
+ {{ countryCount }} +
+
+ Countries supported +
+ + Details + + +
+
{{ percentile }}
- Lending percentile on Kiva + Lending percentile
@@ -80,10 +88,12 @@ import { gql } from '@apollo/client'; import numeral from 'numeral'; import getCacheKey from '@/util/getCacheKey'; +import { mdiArrowRight } from '@mdi/js'; import AsyncPortfolioSection from './AsyncPortfolioSection'; // import LoanCountOverTimeFigure from './LoanCountOverTimeFigure'; import KvGrid from '~/@kiva/kv-components/vue/KvGrid'; import KvLoadingPlaceholder from '~/@kiva/kv-components/vue/KvLoadingPlaceholder'; +import KvMaterialIcon from '~/@kiva/kv-components/vue/KvMaterialIcon'; export default { name: 'LendingInsights', @@ -93,6 +103,7 @@ export default { AsyncPortfolioSection, KvGrid, KvLoadingPlaceholder, + KvMaterialIcon // LoanCountOverTimeFigure, }, data() { @@ -102,9 +113,10 @@ export default { donationLightboxVisible: false, // loanLightboxVisible: false, countryCount: 0, - inviteeLoanCount: 0, amountLent: 0, percentile: 0, + numberOfLoans: 0, + mdiArrowRight, }; }, methods: { @@ -125,7 +137,7 @@ export default { } userStats { amount_of_loans - number_of_loans_by_invitees + number_of_loans } } }` @@ -133,7 +145,7 @@ export default { this.loading = false; this.countryCount = data?.my?.lendingStats?.lentTo?.countries?.totalCount ?? 0; this.percentile = numeral(data?.my?.lendingStats?.amountLentPercentile ?? 0).format('0o'); - this.inviteeLoanCount = data?.my?.userStats?.number_of_loans_by_invitees ?? 0; + this.numberOfLoans = data?.my?.userStats?.number_of_loans ?? 0; const amountOfLoans = numeral(data?.my?.userStats?.amount_of_loans ?? 0); this.amountLent = amountOfLoans.format('$0,0[.]00'); @@ -148,16 +160,19 @@ export default {