use @bigcommerce/storefront-data-hooks

This commit is contained in:
luc
2020-10-27 02:35:40 +01:00
parent 5962657b7d
commit c7b5c3ddc9
31 changed files with 70 additions and 58 deletions

View File

@@ -1,7 +1,7 @@
import { GetStaticPropsContext, InferGetStaticPropsType } from 'next'
import getSlug from '@utils/get-slug'
import getPage from '@lib/bigcommerce/api/operations/get-page'
import getAllPages from '@lib/bigcommerce/api/operations/get-all-pages'
import getPage from '@bigcommerce/storefront-data-hooks/dist/api/operations/get-page'
import getAllPages from '@bigcommerce/storefront-data-hooks/dist/api/operations/get-all-pages'
import { Layout, HTMLContent } from '@components/core'
export async function getStaticProps({