Skip to content

Commit

Permalink
feat: supply donate cta test code removed
Browse files Browse the repository at this point in the history
  • Loading branch information
roger-in-kiva committed Nov 20, 2023
1 parent 21c633e commit edd8bc4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 99 deletions.
83 changes: 0 additions & 83 deletions src/components/Lend/DonationCTA.vue

This file was deleted.

9 changes: 0 additions & 9 deletions src/components/Lend/LoanSearch/LoanSearchInterface.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@
</template>
</div>
</div>
<template v-if="initialLoadComplete && totalCount > 0">
<!-- Donation CTA Experiment -->
<donation-c-t-a v-if="hasOnePageOfLoans" />
</template>
</div>
</template>

Expand All @@ -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';
Expand All @@ -176,7 +171,6 @@ export default {
name: 'LoanSearchInterface',
inject: ['apollo', 'cookieStore'],
components: {
DonationCTA,
LoanSearchFilterChips,
KvButton,
LoanSearchFilter,
Expand Down Expand Up @@ -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 = {}) {
Expand Down
7 changes: 0 additions & 7 deletions src/pages/Lend/LoanChannelCategoryControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,6 @@
<div v-if="totalCount > 0" class="loan-count tw-text-tertiary">
{{ totalCount }} loans
</div>
<!-- Donation CTA Experiment -->
<donation-c-t-a v-if="hasOnePageOfLoans" />
</div>
</div>

Expand All @@ -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';
Expand Down Expand Up @@ -269,7 +266,6 @@ export default {
KvLoadingOverlay,
QuickFilters,
HelpmeChooseWrapper,
DonationCTA,
PromoGridLoanCardExp,
KvClassicLoanCardContainer,
EmptyState,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit edd8bc4

Please sign in to comment.