From 5c50a1aff0cdc68714a47e66ea0edee1577e2f9d Mon Sep 17 00:00:00 2001 From: cond0r Date: Thu, 23 Sep 2021 19:16:06 +0300 Subject: [PATCH] Revert files --- framework/bigcommerce/cart/use-add-item.tsx | 26 ++++++++++----------- tsconfig.json | 4 ++-- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/framework/bigcommerce/cart/use-add-item.tsx b/framework/bigcommerce/cart/use-add-item.tsx index bdad1862c..441d32775 100644 --- a/framework/bigcommerce/cart/use-add-item.tsx +++ b/framework/bigcommerce/cart/use-add-item.tsx @@ -29,18 +29,16 @@ export const handler: MutationHook = { return data }, - useHook: - ({ fetch }) => - () => { - const { mutate } = useCart() + useHook: ({ fetch }) => () => { + const { mutate } = useCart() - return useCallback( - async function addItem(input) { - const data = await fetch({ input }) - await mutate(data, false) - return data - }, - [fetch, mutate] - ) - }, -} + return useCallback( + async function addItem(input) { + const data = await fetch({ input }) + await mutate(data, false) + return data + }, + [fetch, mutate] + ) + }, +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index c37583a0a..340929669 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -23,8 +23,8 @@ "@components/*": ["components/*"], "@commerce": ["framework/commerce"], "@commerce/*": ["framework/commerce/*"], - "@framework": ["framework/shopify"], - "@framework/*": ["framework/shopify/*"] + "@framework": ["framework/local"], + "@framework/*": ["framework/local/*"] } }, "include": ["next-env.d.ts", "**/*.d.ts", "**/*.ts", "**/*.tsx", "**/*.js"],