diff --git a/components/core/Footer/Footer.tsx b/components/core/Footer/Footer.tsx index 4cc4abc01..c6121db1e 100644 --- a/components/core/Footer/Footer.tsx +++ b/components/core/Footer/Footer.tsx @@ -3,7 +3,7 @@ import cn from 'classnames' import Link from 'next/link' import { useRouter } from 'next/router' import type { Page } from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' -import getSlug from '@utils/get-slug' +import getSlug from '@lib/get-slug' import { Github } from '@components/icons' import { Logo, Container } from '@components/ui' import { I18nWidget } from '@components/core' diff --git a/components/core/HomeAllProductsGrid/HomeAllProductsGrid.tsx b/components/core/HomeAllProductsGrid/HomeAllProductsGrid.tsx index fc58486cd..bac21c39d 100644 --- a/components/core/HomeAllProductsGrid/HomeAllProductsGrid.tsx +++ b/components/core/HomeAllProductsGrid/HomeAllProductsGrid.tsx @@ -1,6 +1,6 @@ import { FC } from 'react' import Link from 'next/link' -import { getCategoryPath, getDesignerPath } from '@utils/search' +import { getCategoryPath, getDesignerPath } from '@lib/search' import { Grid } from '@components/ui' import { ProductCard } from '@components/product' import s from './HomeAllProductsGrid.module.css' diff --git a/utils/get-slug.ts b/lib/get-slug.ts similarity index 100% rename from utils/get-slug.ts rename to lib/get-slug.ts diff --git a/utils/search.tsx b/lib/search.tsx similarity index 100% rename from utils/search.tsx rename to lib/search.tsx diff --git a/pages/[...pages].tsx b/pages/[...pages].tsx index 71cb6d38f..ad67d581a 100644 --- a/pages/[...pages].tsx +++ b/pages/[...pages].tsx @@ -2,7 +2,7 @@ import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next' 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' +import getSlug from '@lib/get-slug' import { Layout, HTMLContent } from '@components/core' export async function getStaticProps({ diff --git a/pages/search.tsx b/pages/search.tsx index 63cb54cb4..bb892bdaf 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -11,13 +11,13 @@ import { ProductCard } from '@components/product' import { Container, Grid, Skeleton } from '@components/ui' import rangeMap from '@lib/range-map' -import getSlug from '@utils/get-slug' +import getSlug from '@lib/get-slug' import { filterQuery, getCategoryPath, getDesignerPath, useSearchMeta, -} from '@utils/search' +} from '@lib/search' export async function getStaticProps({ preview,