From cad3ad7756716394fcc57f85925265018c01e7c3 Mon Sep 17 00:00:00 2001 From: GunaTrika Date: Wed, 6 Oct 2021 12:04:21 +0530 Subject: [PATCH] Fixing build error --- framework/elasticpath/checkout/use-checkout.tsx | 14 ++++++++++++++ next-env.d.ts | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 framework/elasticpath/checkout/use-checkout.tsx diff --git a/framework/elasticpath/checkout/use-checkout.tsx b/framework/elasticpath/checkout/use-checkout.tsx new file mode 100644 index 000000000..942f85b83 --- /dev/null +++ b/framework/elasticpath/checkout/use-checkout.tsx @@ -0,0 +1,14 @@ +import { SWRHook } from '@commerce/utils/types' +import useCheckout, { UseCheckout } from '@commerce/checkout/use-checkout' + +export default useCheckout as UseCheckout + +export const handler: SWRHook = { + fetchOptions: { + query: '', + }, + async fetcher({ input, options, fetch }) {}, + useHook: + ({ useData }) => + async (input) => ({}), +} diff --git a/next-env.d.ts b/next-env.d.ts index c6643fda1..3db3c4df2 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,3 +1,5 @@ /// /// -/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information.