From 1c10bd93f0f2d3aea92c6bdd7dbb51a800bde1e8 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Thu, 15 Oct 2020 16:36:05 -0500 Subject: [PATCH] Fix provider --- components/core/Layout/Layout.tsx | 9 ++++++--- lib/bigcommerce/api/checkout.ts | 1 - lib/bigcommerce/api/operations/get-all-pages.ts | 1 - pages/_app.tsx | 11 ++++------- 4 files changed, 10 insertions(+), 12 deletions(-) diff --git a/components/core/Layout/Layout.tsx b/components/core/Layout/Layout.tsx index 4b9f98812..63ec7a238 100644 --- a/components/core/Layout/Layout.tsx +++ b/components/core/Layout/Layout.tsx @@ -3,6 +3,7 @@ import cn from 'classnames' import { ThemeProvider } from 'next-themes' import { SSRProvider, OverlayProvider } from 'react-aria' import type { Page } from '@lib/bigcommerce/api/operations/get-all-pages' +import { CommerceProvider } from '@lib/bigcommerce' import { Navbar, Featurebar, Footer } from '@components/core' import { Container, Sidebar } from '@components/ui' import { CartSidebarView } from '@components/cart' @@ -44,9 +45,11 @@ const Layout: FC = ({ children, pageProps }) => ( - - {children} - + + + {children} + + diff --git a/lib/bigcommerce/api/checkout.ts b/lib/bigcommerce/api/checkout.ts index cf9230c72..531f6d9e4 100644 --- a/lib/bigcommerce/api/checkout.ts +++ b/lib/bigcommerce/api/checkout.ts @@ -43,7 +43,6 @@ const checkoutApi: BigcommerceApiHandler = async (req, res, config) => {