4
0
forked from crowetic/commerce

Removed /utils

This commit is contained in:
Luis Alvarez 2020-10-27 05:53:30 -05:00
parent c82f2c5e61
commit eddf338bfb
6 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import cn from 'classnames'
import Link from 'next/link' import Link from 'next/link'
import { useRouter } from 'next/router' import { useRouter } from 'next/router'
import type { Page } from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' 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 { Github } from '@components/icons'
import { Logo, Container } from '@components/ui' import { Logo, Container } from '@components/ui'
import { I18nWidget } from '@components/core' import { I18nWidget } from '@components/core'

View File

@ -1,6 +1,6 @@
import { FC } from 'react' import { FC } from 'react'
import Link from 'next/link' import Link from 'next/link'
import { getCategoryPath, getDesignerPath } from '@utils/search' import { getCategoryPath, getDesignerPath } from '@lib/search'
import { Grid } from '@components/ui' import { Grid } from '@components/ui'
import { ProductCard } from '@components/product' import { ProductCard } from '@components/product'
import s from './HomeAllProductsGrid.module.css' import s from './HomeAllProductsGrid.module.css'

View File

@ -2,7 +2,7 @@ import type { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
import { getConfig } from '@bigcommerce/storefront-data-hooks/api' import { getConfig } from '@bigcommerce/storefront-data-hooks/api'
import getPage from '@bigcommerce/storefront-data-hooks/api/operations/get-page' import getPage from '@bigcommerce/storefront-data-hooks/api/operations/get-page'
import getAllPages from '@bigcommerce/storefront-data-hooks/api/operations/get-all-pages' 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' import { Layout, HTMLContent } from '@components/core'
export async function getStaticProps({ export async function getStaticProps({

View File

@ -11,13 +11,13 @@ import { ProductCard } from '@components/product'
import { Container, Grid, Skeleton } from '@components/ui' import { Container, Grid, Skeleton } from '@components/ui'
import rangeMap from '@lib/range-map' import rangeMap from '@lib/range-map'
import getSlug from '@utils/get-slug' import getSlug from '@lib/get-slug'
import { import {
filterQuery, filterQuery,
getCategoryPath, getCategoryPath,
getDesignerPath, getDesignerPath,
useSearchMeta, useSearchMeta,
} from '@utils/search' } from '@lib/search'
export async function getStaticProps({ export async function getStaticProps({
preview, preview,