feat(poc): change types for cart component

This commit is contained in:
Björn Meyer 2023-07-14 11:30:47 +02:00
parent d24146d45e
commit d61acff7d1
3 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import LoadingDots from 'components/loading-dots';
import { useRouter } from 'next/navigation';
import clsx from 'clsx';
import type { CartItem } from 'lib/shopify/types';
import type { CartItem } from 'lib/shopware/types';
import { useTransition } from 'react';
import { removeItem } from 'components/cart/actions';

View File

@ -6,7 +6,7 @@ import { removeItem, updateItemQuantity } from 'components/cart/actions';
import MinusIcon from 'components/icons/minus';
import PlusIcon from 'components/icons/plus';
import LoadingDots from 'components/loading-dots';
import type { CartItem } from 'lib/shopify/types';
import type { CartItem } from 'lib/shopware/types';
export default function EditItemQuantityButton({
item,

View File

@ -9,7 +9,7 @@ import CloseIcon from 'components/icons/close';
import ShoppingBagIcon from 'components/icons/shopping-bag';
import Price from 'components/price';
import { DEFAULT_OPTION } from 'lib/constants';
import type { Cart } from 'lib/shopify/types';
import type { Cart } from 'lib/shopware/types';
import { createUrl } from 'lib/utils';
import { Fragment, useEffect, useRef, useState } from 'react';
import { useCookies } from 'react-cookie';
@ -109,7 +109,7 @@ export default function CartModal({ cart, cartIdUpdated }: { cart: Cart; cartIdU
});
const merchandiseUrl = createUrl(
`/product/${item.merchandise.product.handle}`,
`/product/${item.merchandise.product.path}`,
new URLSearchParams(merchandiseSearchParams)
);