Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion @kiva/kv-components/src/vue/KvCompactLoanCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
class="loan-card-use-text tw-w-full tw-overflow-hidden"
>
<div
v-for="(_n, i) in [...Array(4)]"
v-for="(_n, i) in [...Array(loanUseLoadingRows)]"
:key="i"
class="tw-h-2 tw-mb-1"
>
Expand Down Expand Up @@ -525,6 +525,10 @@ export default {
return { height, maxHeight };
});

const loanUseLoadingRows = computed(() => {
return props.showLightView ? 3 : 4;
});

const trackWebsiteClick = () => {
props.kvTrackFunction('Lending', 'click-Business Website', 'Website', props.loanId);
};
Expand Down Expand Up @@ -560,6 +564,7 @@ export default {
unreservedAmount,
sharesAvailable,
customStyle,
loanUseLoadingRows,
clickReadMore,
trackWebsiteClick,
handleCloseButton,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,15 @@ export const ViewLoanFunded = story({
showViewLoan: true,
});

export const LightViewLoanLoading = lightStory({
loanId: loan.id,
loan: undefined,
kvTrackFunction,
photoPath,
showLightView: true,
truncateWordsNumber: TRUNCATE_WORDS_NUMBER,
});

export const LightViewLoan = lightStory({
loanId: loan.id,
loan,
Expand Down
Loading