From 7aa9019ada131caf7e561203d7a9d2f8c7b726d0 Mon Sep 17 00:00:00 2001 From: Luis Alvarez Date: Tue, 27 Oct 2020 04:53:21 -0500 Subject: [PATCH] Updated imports --- components/wishlist/WishlistCard/WishlistCard.tsx | 8 ++++---- pages/[...pages].tsx | 2 +- pages/blog.tsx | 2 +- pages/cart.tsx | 2 +- pages/orders.tsx | 4 ++-- pages/profile.tsx | 4 ++-- pages/search.tsx | 2 +- pages/wishlist.tsx | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/components/wishlist/WishlistCard/WishlistCard.tsx b/components/wishlist/WishlistCard/WishlistCard.tsx index 100428ca1..44054d674 100644 --- a/components/wishlist/WishlistCard/WishlistCard.tsx +++ b/components/wishlist/WishlistCard/WishlistCard.tsx @@ -2,10 +2,10 @@ import { FC, useState } from 'react' import cn from 'classnames' import Link from 'next/link' import Image from 'next/image' -import type { WishlistItem } from '@lib/bigcommerce/api/wishlist' -import usePrice from '@lib/bigcommerce/use-price' -import useRemoveItem from '@lib/bigcommerce/wishlist/use-remove-item' -import useAddItem from '@lib/bigcommerce/cart/use-add-item' +import type { WishlistItem } from '@bigcommerce/storefront-data-hooks/api/wishlist' +import usePrice from '@bigcommerce/storefront-data-hooks/use-price' +import useRemoveItem from '@bigcommerce/storefront-data-hooks/wishlist/use-remove-item' +import useAddItem from '@bigcommerce/storefront-data-hooks/cart/use-add-item' import { useUI } from '@components/ui/context' import { Button } from '@components/ui' import { HTMLContent } from '@components/core' diff --git a/pages/[...pages].tsx b/pages/[...pages].tsx index d972fb076..71cb6d38f 100644 --- a/pages/[...pages].tsx +++ b/pages/[...pages].tsx @@ -1,5 +1,5 @@ import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next' -import { getConfig } from '@lib/bigcommerce/api' +import { getConfig } from '@bigcommerce/storefront-data-hooks/api' import getPage from '@bigcommerce/storefront-data-hooks/api/operations/get-page' import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' import getSlug from '@utils/get-slug' diff --git a/pages/blog.tsx b/pages/blog.tsx index 8b9591a8e..905c7e2b6 100644 --- a/pages/blog.tsx +++ b/pages/blog.tsx @@ -1,5 +1,5 @@ import type { GetStaticPropsContext } from 'next' -import { getConfig } from '@lib/bigcommerce/api' +import { getConfig } from '@bigcommerce/storefront-data-hooks/api' import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' import { Layout } from '@components/core' import { Container } from '@components/ui' diff --git a/pages/cart.tsx b/pages/cart.tsx index be5f389a2..9304f8247 100644 --- a/pages/cart.tsx +++ b/pages/cart.tsx @@ -1,5 +1,5 @@ import type { GetStaticPropsContext } from 'next' -import { getConfig } from '@lib/bigcommerce/api' +import { getConfig } from '@bigcommerce/storefront-data-hooks/api' import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' import useCart from '@bigcommerce/storefront-data-hooks/cart/use-cart' import usePrice from '@bigcommerce/storefront-data-hooks/use-price' diff --git a/pages/orders.tsx b/pages/orders.tsx index a92546f12..a6c4cf2c2 100644 --- a/pages/orders.tsx +++ b/pages/orders.tsx @@ -1,6 +1,6 @@ import type { GetStaticPropsContext } from 'next' -import { getConfig } from '@lib/bigcommerce/api' -import getAllPages from '@lib/bigcommerce/api/operations/get-all-pages' +import { getConfig } from '@bigcommerce/storefront-data-hooks/api' +import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' import { Layout } from '@components/core' import { Container, Text } from '@components/ui' import { Bag } from '@components/icons' diff --git a/pages/profile.tsx b/pages/profile.tsx index 862f8434d..c960df19e 100644 --- a/pages/profile.tsx +++ b/pages/profile.tsx @@ -1,6 +1,6 @@ import type { GetStaticPropsContext } from 'next' -import { getConfig } from '@lib/bigcommerce/api' -import getAllPages from '@lib/bigcommerce/api/operations/get-all-pages' +import { getConfig } from '@bigcommerce/storefront-data-hooks/api' +import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' import useCustomer from '@bigcommerce/storefront-data-hooks/use-customer' import { Layout } from '@components/core' import { Container, Text } from '@components/ui' diff --git a/pages/search.tsx b/pages/search.tsx index d47f9d39f..63cb54cb4 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -2,7 +2,7 @@ import cn from 'classnames' import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next' import Link from 'next/link' import { useRouter } from 'next/router' -import { getConfig } from '@lib/bigcommerce/api' +import { getConfig } from '@bigcommerce/storefront-data-hooks/api' import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' import getSiteInfo from '@bigcommerce/storefront-data-hooks/api/operations/get-site-info' import useSearch from '@bigcommerce/storefront-data-hooks/products/use-search' diff --git a/pages/wishlist.tsx b/pages/wishlist.tsx index 69f428d10..f89d2e47f 100644 --- a/pages/wishlist.tsx +++ b/pages/wishlist.tsx @@ -1,5 +1,5 @@ import type { GetStaticPropsContext } from 'next' -import { getConfig } from '@lib/bigcommerce/api' +import { getConfig } from '@bigcommerce/storefront-data-hooks/api' import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' import useWishlist from '@bigcommerce/storefront-data-hooks/wishlist/use-wishlist' import { Layout } from '@components/core'