From f242f3c58859caee30ebbecbb0e8387c197d26d6 Mon Sep 17 00:00:00 2001 From: cond0r Date: Thu, 25 Feb 2021 09:55:02 +0200 Subject: [PATCH] Aligned with upstream changes --- .../cart/CartSidebarView/CartSidebarView.tsx | 3 ++- framework/commerce/with-config.js | 2 +- framework/shopify/api/checkout/index.ts | 21 +++++++++++-------- framework/shopify/auth/use-login.tsx | 4 +--- framework/shopify/auth/use-logout.tsx | 2 +- framework/shopify/auth/use-signup.tsx | 2 +- framework/shopify/common/get-all-pages.ts | 21 ++++++++++++++----- framework/shopify/common/get-page.ts | 13 ++++++------ framework/shopify/next.config.js | 11 ++++++++++ .../shopify/product/get-all-product-paths.ts | 11 +++++++++- framework/shopify/product/get-all-products.ts | 14 ++++++------- framework/shopify/product/use-price.tsx | 4 ++-- framework/shopify/utils/normalize.ts | 2 +- .../utils/queries/get-all-pages-query.ts | 3 --- .../shopify/utils/queries/get-page-query.ts | 1 - next.config.js | 5 +++-- tsconfig.json | 5 +++-- 17 files changed, 77 insertions(+), 47 deletions(-) create mode 100644 framework/shopify/next.config.js diff --git a/components/cart/CartSidebarView/CartSidebarView.tsx b/components/cart/CartSidebarView/CartSidebarView.tsx index 3ceda44fe..cb932247f 100644 --- a/components/cart/CartSidebarView/CartSidebarView.tsx +++ b/components/cart/CartSidebarView/CartSidebarView.tsx @@ -8,6 +8,7 @@ import useCart from '@framework/cart/use-cart' import usePrice from '@framework/product/use-price' import CartItem from '../CartItem' import s from './CartSidebarView.module.css' +import { LineItem } from '@commerce/types' const CartSidebarView: FC = () => { const { closeSidebar } = useUI() @@ -91,7 +92,7 @@ const CartSidebarView: FC = () => { My Cart