66
77 <div ref =" listElement" class =" shared-list__content" >
88 <!-- Skeletons -->
9- <template v-if =" listLoading " >
10- <div v-if =" isMobile" class =" shared-list__skeleton-mobile" >
11- <ProductSkeletonGrid v-for =" i in actualPageRowsCount" :key =" i" />
12- </div >
13-
14- <div v-else class =" shared-list__skeleton-desktop" >
15- <WishlistProductItemSkeleton
16- v-for =" i in actualPageRowsCount"
17- :key =" i"
18- class =" shared-list__skeleton-desktop-item"
19- />
20- </div >
21- </template >
9+ <WishlistProductsSkeleton v-if =" listLoading" :itemsCount =" actualPageRowsCount" />
2210
2311 <!-- List details -->
2412 <template v-else-if =" ! listLoading && !! list ?.items ?.length " >
7462</template >
7563
7664<script setup lang="ts">
77- import { breakpointsTailwind , useBreakpoints } from " @vueuse/core" ;
7865import cloneDeep from " lodash/cloneDeep" ;
7966import keyBy from " lodash/keyBy" ;
8067import { computed , ref , watchEffect , defineAsyncComponent } from " vue" ;
@@ -85,11 +72,9 @@ import { PAGE_LIMIT } from "@/core/constants";
8572import { MODULE_XAPI_KEYS } from " @/core/constants/modules" ;
8673import { prepareLineItem } from " @/core/utilities" ;
8774import { useShortCart } from " @/shared/cart" ;
88- import { ProductSkeletonGrid } from " @/shared/catalog" ;
89- import { useWishlists , WishlistLineItems , WishlistProductItemSkeleton } from " @/shared/wishlists" ;
75+ import { useWishlists , WishlistLineItems , WishlistProductsSkeleton , WishlistSummary } from " @/shared/wishlists" ;
9076import type { LineItemType , Product } from " @/core/api/graphql/types" ;
9177import type { PreparedLineItemType } from " @/core/types" ;
92- import WishlistSummary from " @/shared/wishlists/components/wishlist-summary.vue" ;
9378
9479const props = defineProps <IProps >();
9580
@@ -108,7 +93,6 @@ const { cart } = useShortCart();
10893const { continue_shopping_link } = getModuleSettings ({
10994 [MODULE_XAPI_KEYS .CONTINUE_SHOPPING_LINK ]: " continue_shopping_link" ,
11095});
111- const breakpoints = useBreakpoints (breakpointsTailwind );
11296
11397usePageHead ({
11498 title: computed (() => t (" pages.account.list_details.meta.title" , [list .value ?.name ])),
@@ -120,7 +104,6 @@ const wishlistListProperties = computed(() => ({
120104 related_id: list .value ?.id ,
121105 related_type: " wishlist" ,
122106}));
123- const isMobile = breakpoints .smaller (" lg" );
124107
125108const listElement = ref <HTMLElement | undefined >();
126109const pendingItems = ref <Record <string , boolean >>({});
@@ -175,18 +158,6 @@ watchEffect(() => {
175158 @apply mt-5 w-full ;
176159 }
177160
178- & __skeleton-mobile {
179- @apply grid grid-cols-2 gap-x-4 gap-y- 6;
180- }
181-
182- & __skeleton-desktop {
183- @apply flex flex-col rounded border bg-additional-50 shadow-sm ;
184- }
185-
186- & __skeleton-desktop-item {
187- @apply even :bg- neutral- 50;
188- }
189-
190161 & __items {
191162 @apply flex flex-col gap- 6;
192163 }
0 commit comments