From 7e4f9757280b866c716ba4c1c583c5848be1bf94 Mon Sep 17 00:00:00 2001 From: Peter Mekhaeil Date: Fri, 29 Jan 2021 17:59:26 +0800 Subject: [PATCH] update reference to types file --- framework/shopify/api/operations/get-page.ts | 2 +- framework/shopify/common/get-all-pages.ts | 2 +- framework/shopify/index.tsx | 2 +- framework/shopify/product/get-all-product-paths.ts | 2 +- framework/shopify/product/get-all-products.ts | 2 +- framework/shopify/product/get-product.ts | 2 +- framework/shopify/product/use-search.tsx | 2 +- framework/shopify/wishlist/use-wishlist.tsx | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/framework/shopify/api/operations/get-page.ts b/framework/shopify/api/operations/get-page.ts index 0636cc5ea..11651e335 100644 --- a/framework/shopify/api/operations/get-page.ts +++ b/framework/shopify/api/operations/get-page.ts @@ -1,5 +1,5 @@ import { ShopifyConfig, getConfig } from '..' -import type { Page } from '../../utils/types' +import type { Page } from '../../types' export type { Page } diff --git a/framework/shopify/common/get-all-pages.ts b/framework/shopify/common/get-all-pages.ts index 66732c136..02db3fdc3 100644 --- a/framework/shopify/common/get-all-pages.ts +++ b/framework/shopify/common/get-all-pages.ts @@ -1,5 +1,5 @@ import { getConfig, ShopifyConfig } from '../api' -import { Page as PageType, PageEdge } from '../utils/types' +import { Page as PageType, PageEdge } from '../types' export type Page = PageType diff --git a/framework/shopify/index.tsx b/framework/shopify/index.tsx index 9d363d118..5fd08e0d9 100644 --- a/framework/shopify/index.tsx +++ b/framework/shopify/index.tsx @@ -7,7 +7,7 @@ import React, { useEffect, } from 'react' import Client from 'shopify-buy' -import { Shop, Cart, Client as ClientType } from './utils/types' +import { Shop, Cart, Client as ClientType } from './types' import { getCheckoutIdFromStorage, setCheckoutIdInStorage, diff --git a/framework/shopify/product/get-all-product-paths.ts b/framework/shopify/product/get-all-product-paths.ts index dd333017b..3d4f0ef7a 100644 --- a/framework/shopify/product/get-all-product-paths.ts +++ b/framework/shopify/product/get-all-product-paths.ts @@ -1,6 +1,6 @@ import Client from 'shopify-buy' import { getConfig } from '../api' -import { Product } from '../utils/types' +import { Product } from '../types' import toCommerceProducts from '../utils/to-commerce-products' type ReturnType = { diff --git a/framework/shopify/product/get-all-products.ts b/framework/shopify/product/get-all-products.ts index d42676feb..6e4881e99 100644 --- a/framework/shopify/product/get-all-products.ts +++ b/framework/shopify/product/get-all-products.ts @@ -1,6 +1,6 @@ import Client from 'shopify-buy' import { ShopifyConfig } from '../api' -import { Product } from '../utils/types' +import { Product } from '../types' import toCommerceProducts from '../utils/to-commerce-products' export type ProductNode = Product diff --git a/framework/shopify/product/get-product.ts b/framework/shopify/product/get-product.ts index d58db27c7..f71aa0213 100644 --- a/framework/shopify/product/get-product.ts +++ b/framework/shopify/product/get-product.ts @@ -1,6 +1,6 @@ import Client from 'shopify-buy' import { ShopifyConfig } from '../api' -import { Product } from '../utils/types' +import { Product } from '../types' import toCommerceProducts from '../utils/to-commerce-products' export type ProductNode = Product diff --git a/framework/shopify/product/use-search.tsx b/framework/shopify/product/use-search.tsx index 2e23dc2cb..a2c32c896 100644 --- a/framework/shopify/product/use-search.tsx +++ b/framework/shopify/product/use-search.tsx @@ -1,7 +1,7 @@ import type { HookFetcher } from '@commerce/utils/types' import type { SwrOptions } from '@commerce/utils/use-data' import useCommerceSearch from '@commerce/products/use-search' -import { ProductEdge } from '@framework/utils/types' +import { ProductEdge } from '../types' const defaultOpts = {} diff --git a/framework/shopify/wishlist/use-wishlist.tsx b/framework/shopify/wishlist/use-wishlist.tsx index 4df6b6054..2aac16810 100644 --- a/framework/shopify/wishlist/use-wishlist.tsx +++ b/framework/shopify/wishlist/use-wishlist.tsx @@ -1,8 +1,8 @@ import { HookFetcher } from '@commerce/utils/types' import { SwrOptions } from '@commerce/utils/use-data' import useCommerceWishlist from '@commerce/wishlist/use-wishlist' -import { Product } from '@framework/utils/types' -import useCustomer from '../use-customer' +import { Product } from '../types' +import useCustomer from '../customer/use-customer' const defaultOpts = {}