Skip to content

Commit

Permalink
fix: only basket items need to be adjusted for logged out version of …
Browse files Browse the repository at this point in the history
…experiment
  • Loading branch information
dyersituations committed Jun 18, 2024
1 parent fe6e5ef commit e72f408
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions src/pages/Checkout/CheckoutPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@
/>
</div>
<div class="tw-relative">
<div
class="basket-container tw-mx-auto tw-my-0"
:class="{ [checkoutStickyExperimentBasketClasses]: showCheckoutStickyExperiment }"
>
<div class="basket-container tw-mx-auto tw-my-0">
<basket-items-list
:loans="loans"
:donations="donations"
Expand All @@ -59,6 +56,7 @@
@validateprecheckout="validatePreCheckout"
@refreshtotals="refreshTotals($event)"
@updating-totals="setUpdatingTotals"
:class="{ 'lg:tw-w-3/4 lg:tw-mx-0 lg:tw-pr-3': showCheckoutStickyExperiment }"
/>
<div v-if="showUpsell && showUpsellModule" class="upsellContainer">
<kv-loading-placeholder v-if="!upsellLoan.name" class="tw-rounded" />
Expand All @@ -70,10 +68,7 @@
/>
</div>
</div>
<div
v-if="showKivaCardForm"
:class="{ [checkoutStickyExperimentBasketClasses]: showCheckoutStickyExperiment }"
>
<div v-if="showKivaCardForm">
<hr class="tw-border-tertiary tw-my-3">
<div class="basket-container tw-mx-auto tw-my-0">
<kiva-card-redemption
Expand All @@ -84,14 +79,9 @@
/>
</div>
</div>
<div :class="{ [checkoutStickyExperimentBasketClasses]: showCheckoutStickyExperiment }">
<hr class="tw-border-tertiary tw-my-3">
</div>
<hr class="tw-border-tertiary tw-my-3">

<div
class="basket-container tw-mx-auto tw-my-0"
:class="{ [checkoutStickyExperimentBasketClasses]: showCheckoutStickyExperiment }"
>
<div class="basket-container tw-mx-auto tw-my-0">
<checkout-holiday-promo
v-if="holidayModeEnabled"
@updating-totals="setUpdatingTotals"
Expand Down Expand Up @@ -469,7 +459,6 @@ export default {
depositIncentiveAmountToLend: 0,
depositIncentiveExperimentEnabled: false,
checkoutStickyExperimentEnabled: false,
checkoutStickyExperimentBasketClasses: 'lg:tw-w-3/4 lg:tw-mx-0 lg:tw-pr-3',
isDesktop: false,
setIsDesktopThrottled: _throttle(this.setIsDesktop, 200),
};
Expand Down

0 comments on commit e72f408

Please sign in to comment.