From 249e2c611b2fcc8356a9602aec20ec54613ffef7 Mon Sep 17 00:00:00 2001 From: Roger Gutierrez <94026278+roger-in-kiva@users.noreply.github.com> Date: Mon, 20 Nov 2023 13:56:16 -0600 Subject: [PATCH] feat: supply donate cta test code removed (#5076) --- src/assets/icons/inline/sad-cloud.svg | 1 - src/components/Lend/DonationCTA.vue | 83 ------------------- .../Lend/LoanSearch/LoanSearchInterface.vue | 9 -- src/pages/Lend/LoanChannelCategoryControl.vue | 7 -- 4 files changed, 100 deletions(-) delete mode 100644 src/assets/icons/inline/sad-cloud.svg delete mode 100644 src/components/Lend/DonationCTA.vue diff --git a/src/assets/icons/inline/sad-cloud.svg b/src/assets/icons/inline/sad-cloud.svg deleted file mode 100644 index 5125bcfc21..0000000000 --- a/src/assets/icons/inline/sad-cloud.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/Lend/DonationCTA.vue b/src/components/Lend/DonationCTA.vue deleted file mode 100644 index 2f3a67d9fa..0000000000 --- a/src/components/Lend/DonationCTA.vue +++ /dev/null @@ -1,83 +0,0 @@ - - - - - diff --git a/src/components/Lend/LoanSearch/LoanSearchInterface.vue b/src/components/Lend/LoanSearch/LoanSearchInterface.vue index f304b5cca0..3c605bd272 100644 --- a/src/components/Lend/LoanSearch/LoanSearchInterface.vue +++ b/src/components/Lend/LoanSearch/LoanSearchInterface.vue @@ -127,10 +127,6 @@ - @@ -153,7 +149,6 @@ import { isNumber } from '@/util//numberUtils'; import LoanSearchFilterChips from '@/components/Lend/LoanSearch/LoanSearchFilterChips'; import LoanSearchSavedSearch from '@/components/Lend/LoanSearch/LoanSearchSavedSearch'; import filterConfig from '@/util/loanSearch/filterConfig'; -import DonationCTA from '@/components/Lend/DonationCTA'; import { gql } from '@apollo/client'; import KvButton from '~/@kiva/kv-components/vue/KvButton'; import KvLightbox from '~/@kiva/kv-components/vue/KvLightbox'; @@ -176,7 +171,6 @@ export default { name: 'LoanSearchInterface', inject: ['apollo', 'cookieStore'], components: { - DonationCTA, LoanSearchFilterChips, KvButton, LoanSearchFilter, @@ -330,9 +324,6 @@ export default { return prev || filterConfig.config[key].showSavedSearch(this.loanSearchState); }, false); }, - hasOnePageOfLoans() { - return this.totalCount <= this.loanSearchState.pageLimit; - } }, methods: { async fetchFacets(loanSearchState = {}) { diff --git a/src/pages/Lend/LoanChannelCategoryControl.vue b/src/pages/Lend/LoanChannelCategoryControl.vue index c784d60b06..1a55028a69 100644 --- a/src/pages/Lend/LoanChannelCategoryControl.vue +++ b/src/pages/Lend/LoanChannelCategoryControl.vue @@ -135,8 +135,6 @@
{{ totalCount }} loans
- - @@ -153,7 +151,6 @@ import numeral from 'numeral'; import logReadQueryError from '@/util/logReadQueryError'; import loanChannelPageQuery from '@/graphql/query/loanChannelPage.graphql'; import loanChannelQueryMapMixin from '@/plugins/loan-channel-query-map'; -import DonationCTA from '@/components/Lend/DonationCTA'; import KvPagination from '@/components/Kv/KvPagination'; import PromoGridLoanCardExp from '@/components/LoanCards/PromoGridLoanCardExp'; import KvLoadingOverlay from '@/components/Kv/KvLoadingOverlay'; @@ -269,7 +266,6 @@ export default { KvLoadingOverlay, QuickFilters, HelpmeChooseWrapper, - DonationCTA, PromoGridLoanCardExp, KvClassicLoanCardContainer, EmptyState, @@ -399,9 +395,6 @@ export default { } return url; }, - hasOnePageOfLoans() { - return this.totalCount <= this.limit; - }, showHelpMeChooseFeat() { const queryMapFLSS = getFLSSQueryMap(this.loanChannelQueryMap, this.targetedLoanChannelURL); const hasSortBy = !!queryMapFLSS?.sortBy;