From edd8bc4f8eb50e074bfc34dda98b06c3eee23b3a Mon Sep 17 00:00:00 2001 From: Roger Gutierrez Date: Mon, 20 Nov 2023 13:19:14 -0600 Subject: [PATCH] feat: supply donate cta test code removed --- src/components/Lend/DonationCTA.vue | 83 ------------------- .../Lend/LoanSearch/LoanSearchInterface.vue | 9 -- src/pages/Lend/LoanChannelCategoryControl.vue | 7 -- 3 files changed, 99 deletions(-) delete mode 100644 src/components/Lend/DonationCTA.vue 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;