MED-193: improve mobile design for cart tables
This commit is contained in:
@@ -5,7 +5,7 @@ import { redirect } from 'next/navigation';
|
||||
|
||||
import { sdk } from '@lib/config';
|
||||
import medusaError from '@lib/util/medusa-error';
|
||||
import { HttpTypes, StoreCart } from '@medusajs/types';
|
||||
import { HttpTypes, StoreCart, StoreCartPromotion } from '@medusajs/types';
|
||||
|
||||
import { getLogger } from '@kit/shared/logger';
|
||||
|
||||
@@ -25,7 +25,9 @@ import { getRegion } from './regions';
|
||||
* @param cartId - optional - The ID of the cart to retrieve.
|
||||
* @returns The cart object if found, or null if not found.
|
||||
*/
|
||||
export async function retrieveCart(cartId?: string) {
|
||||
export async function retrieveCart(
|
||||
cartId?: string,
|
||||
): Promise<(StoreCart & { promotions: StoreCartPromotion[] }) | null> {
|
||||
const id = cartId || (await getCartId());
|
||||
|
||||
if (!id) {
|
||||
|
||||
Reference in New Issue
Block a user